tag:blogger.com,1999:blog-6653558328125881331.post2943592060076490187..comments2024-03-05T00:00:34.263-05:00Comments on Ben Collins: Stripping an Ubuntu system to just the basics...Ben Collinshttp://www.blogger.com/profile/16641016264284463086noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-6653558328125881331.post-1062488419485401082014-12-31T14:27:13.398-05:002014-12-31T14:27:13.398-05:00Thank you Ben! Still works today!
(Ubuntu Server ...Thank you Ben! Still works today!<br />(Ubuntu Server 14.04 LTS)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6653558328125881331.post-85900343562271486282012-08-01T14:24:44.765-04:002012-08-01T14:24:44.765-04:00There's a complete set of commands using apt-m...There's a complete set of commands using apt-mark to mark everything as automatically installed, to check proposed removals, and to retain mainstream packages via marking as 'manually installed', detailed at https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/424643/comments/26<br /><br />Roughly it amounts to the following to mark everything as automatically installed...<br /><br />aptitude --display-format '%p' search '~i!~M' | xargs -n100 sudo apt-mark auto<br /><br />...this to check what will be removed given the current markings of packages as manual or automatic...<br /><br />sudo apt-get --simulate autoremove<br /><br />...and this to add your selection of packages to keep as manually installed (including their dependencies). This example is from my Ubuntu Precise desktop, but others will retain different packages) <br /><br />sudo apt-mark manual ubuntu-desktop ubuntu-standard ubuntu-minimal language-pack-en-base language-pack-gnome-en language-pack-gnome-en-base libreoffice-help-en-gb thunderbird-locale-en-gb thunderbird-locale-en-us libreoffice-gnome libidl0 liborbit2 linux-headers-generic-pae hyphen-en-us installation-report linux-generic-pae mythes-en-au openoffice.org-hyphenation libreoffice-l10n-en-za linux-firmware-nonfree ubuntu-restricted-extras arduino geany gparted chromium-browser google-earth-stable google-chrome-stable synapticCefn Hoilehttp://cefn.comnoreply@blogger.comtag:blogger.com,1999:blog-6653558328125881331.post-20874691756195394712011-06-09T09:25:08.409-04:002011-06-09T09:25:08.409-04:00You can also use debfoster to keep a text file lis...You can also use debfoster to keep a text file list of packages you want to be installed.Jeff Cutsingerhttp://jeff.cutsinger.org/noreply@blogger.comtag:blogger.com,1999:blog-6653558328125881331.post-15276317157121844292011-06-08T19:41:33.430-04:002011-06-08T19:41:33.430-04:00Thanks @stapel, fixed now.Thanks @stapel, fixed now.Ben Collinshttps://www.blogger.com/profile/16641016264284463086noreply@blogger.comtag:blogger.com,1999:blog-6653558328125881331.post-10303946008977663582011-06-08T19:33:06.421-04:002011-06-08T19:33:06.421-04:00should this line:
sudo apt-get install boot-stand...should this line:<br /><br />sudo apt-get install boot-standard grub-pc vim build-essential git<br /><br />not be:<br />sudo apt-get install ubuntu-standard grub-pc vim build-essential git<br /><br />instead?stapelhttps://www.blogger.com/profile/08794280816859405003noreply@blogger.comtag:blogger.com,1999:blog-6653558328125881331.post-67118586173026305852011-06-08T17:43:52.420-04:002011-06-08T17:43:52.420-04:00@Marius Gedminas
I'd use "apt-mark marka...@Marius Gedminas<br /><br />I'd use "apt-mark markauto" instead of "aptitude markauto" because apt-mark is installed by default whereas aptitude is not.Mirceahttp://corezero.netnoreply@blogger.comtag:blogger.com,1999:blog-6653558328125881331.post-9670192587728295062011-06-08T15:57:57.998-04:002011-06-08T15:57:57.998-04:00I do a similar thing with aptitude (the curses ver...I do a similar thing with aptitude (the curses version) if i want to switch the DE. I go to 'Tasks' and purge (_) the whole package, then i go to another desktop (ubuntu-desktop, kubuntu-desktop, ubuntu-standard, ubuntu-minimal) and mark it as install (+). Then i let it run.<br />Does basically the same thing, but gives me greater control because i can view the list of changes and change it without redoing everything.<br />Worked fine the last couple of times i used it.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6653558328125881331.post-26149579995755413552011-06-08T15:46:21.744-04:002011-06-08T15:46:21.744-04:00@Marius, I've never used aptitude, but at firs...@Marius, I've never used aptitude, but at first glance of aptitude(8) it sounds like it would do the trick.Ben Collinshttps://www.blogger.com/profile/16641016264284463086noreply@blogger.comtag:blogger.com,1999:blog-6653558328125881331.post-46018833161070546922011-06-08T15:37:05.771-04:002011-06-08T15:37:05.771-04:00Could you use 'aptitude markauto ".*"...Could you use 'aptitude markauto ".*"' instead of playing with /var/lib/apt/extended_states directly?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6653558328125881331.post-60828300209929753952011-06-08T13:23:47.539-04:002011-06-08T13:23:47.539-04:00I should point out that this also works if you'...I should point out that this also works if you've installed a bunch of things and want to go back to the fresh package list. So you could do this for the ubuntu-desktop meta-package too.Ben Collinshttps://www.blogger.com/profile/16641016264284463086noreply@blogger.com