34

I am developing an offline installer for all versions of Ubuntu, and I need Ubuntu's default installed packages list. Is there a way to get this information from any server (web server)? Any script to fetch any Ubuntu version's default installed packages list.

I will give the Ubuntu version, and the script will fetch the packages list.

Note: I need at least a server address. I can write a script for this.

muru
  • 197,895
  • 55
  • 485
  • 740
shantanu
  • 8,599

1 Answers1

43

Going off a previous answer of mine, there are manifest files available that should list all the packages included on the CD.

The URLs of the files are fairly predictable but in constant flux (as new releases come out and old ones are killed off) so a good strategy is:

  1. Go to http://releases.ubuntu.com/ (for currently supported versions) or http://cdimage.ubuntu.com/ (for other versions, server images, etc.)
  2. Pick your spin
  3. Pick releases
  4. Pick a version (eg 14.04)
  5. Pick release (if it has been released)
  6. Find the applicable .manifest file.

Note that not all these packages stay installed. On the CD images, you'll also find a file called /capsper/filesystem.manifest-remove which is a list of things to remove after installation. I can't find an online copy of these files on their own.

muru
  • 197,895
  • 55
  • 485
  • 740
Oli
  • 293,335
  • Predictable perhaps, but broken. – Paul Draper Apr 17 '15 at 12:13
  • @PaulDraper Not broken in so much as constantly changing. I've updated the answer with a DIY approach that should last the test of time. – Oli Apr 17 '15 at 12:58
  • 1
    There don't seem to be manifest files anymore.. – Seth Apr 15 '16 at 13:41
  • 2
    @Seth For Ubuntu, the .manifest files are available for any supported releases at http://releases.ubuntu.com/ and other flavours continue to have the files at the cdimage server. –  Apr 22 '16 at 03:42
  • 1
    This answer used to point to releases.ubuntu.com but the practical problem is it only lists supported releases. I took the view that the question is more about the original install (which may now well be an unsupported release). I'll edit it back in. – Oli Apr 22 '16 at 08:36
  • (here is this file /capsper/filesystem.manifest-remove from Ubuntu 17.10) – rubo77 Oct 20 '17 at 19:17
  • Why is some of the software removed? Would be good to say it on answer. – Ciro Santilli OurBigBook.com Dec 14 '18 at 18:54
  • To get just the package list use wget http://releases.ubuntu.com/$RELEASE/ubuntu-$VERSION-desktop-amd64.manifest -q -O - | cut -f 1 | xargs – rubo77 Dec 06 '21 at 01:48