PureOS package sources?


#1

In Debian, you can run “aptitude source {package name}” to download the source code used to build a given package, complete with any Debian-specific patches that went into it. However, when I tried that on PureOS, I got an error message saying that PureOS didn’t have any source URIs configured. In other words, no “deb-src” lines in the “sources.list” file. What would be the URIs of the source repos for PureOS? Or alternatively, how else would I acquire a copy of the code used to build a given package in the PureOS package repo?


#2

I think you can navigate around here and find sources
https://repo.puri.sm/


#3

You can do this two ways;

  1. Through the ‘Software’ app
  2. Via the command line

Via the command line is a bit more reliable. I outline the steps below;

  • Use an editor to edit your /etc/apt/sources.list file
    – I use sudo emacs /etc/apt/sources.list sudo is required because root owns this file.
  • Insert deb-src https://repo.puri.sm/pureos green main into the file exactly as written.
  • apt-get update
  • apt-get source <package_name> will now work

This is just a small change but hacking on your /etc/apt/sources.list can cause problems so one ought to take care.

You can also view all our source code on our Gitlab: https://source.puri.sm/pureos/packages


#4

Yes, this is true. We’re also moving to repo.pureos.net/pureos to disambiguate between Purism and PureOS a little bit.


#5

Awesome. And the repo is even compatible with apt-get, so no need to search through the directories in a Web browser by hand. Thank you!