Timeline for List explicitly installed packages
Current License: CC BY-SA 3.0
        32 events
    
    | when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 11, 2020 at 12:04 | history | edited | CommunityBot | 
                
                    Commonmark migration 
                
             | |
| Apr 8, 2020 at 7:28 | comment | added | Tyn | (I unfortunate cannot edit my comment anymore: the space after VERSION=needs to be removed).  Otherwise, convenient one-liner:comm -23 <(apt-mark showmanual | sort -u) <(curl -s -- https://releases.ubuntu.com/$(grep -oP 'VERSION_CODENAME=\K.+'/etc/os-release)/ubuntu-$(grep -oP 'VERSION="\K[0-9\.]+' /etc/os-release)-desktop-amd64.manifest | cut -f1 | cut -d: -f1 | sort -u) | |
| Apr 8, 2020 at 7:17 | comment | added | Tyn | This is imperfect, but here's how I've generated the "defaultinstalled.txt" file: wget -qO - https://releases.ubuntu.com/$(grep -oP 'VERSION_CODENAME=\K.+' /etc/os-release)/ubuntu-$(grep -oP 'VERSION= "\K[0-9\.]+' /etc/os-release)-desktop-amd64.manifest | cut -f1 | cut -d: -f1 | sort -u > defaultinstalled.txt(replace theamd64as needed). | |
| Jan 11, 2016 at 2:09 | comment | added | rmunn | The mirror.pnl.gov/releases/precise/… URL in this solution is now a 404, making this answer (currently) worthless, unfortunately. Since this question turns up 4th in a Google search for "linux mint list of manually installed packages", it's probably worth updating that URL to something that works. | |
| May 3, 2015 at 6:44 | comment | added | skagedal | The first step that gets a list of packages not installed as dependencies can be replaced with apt-mark showmanual | sort -u, as shown in other answers. Simpler, and does not rely onaptitudewhich is not installed by default. | |
| May 1, 2015 at 23:28 | comment | added | Michahell | If you just install a fresh (whatever) linux, you can just save the installed packages to defaultinstalled.tx Then, use the comm command part :) | |
| Oct 22, 2014 at 8:36 | comment | added | trr | Some sources claim that this will only work if you used aptitude to install the packages; however, I almost never use aptitude to install packages and found that this still worked.that's because that hasn't been true for several years now. It used to be the case that aptitude and apt-get used different databases to record which packages were installed automatically but this has not been the case for a number of stable Debian versions ie many years. Old advice tends to stick around after it's no longer true. | |
| S Aug 13, 2014 at 14:18 | history | suggested | bastistician | CC BY-SA 3.0 | 
                
                    the script does not work without --disable-columns: by default the package names output from aptitude are padded with blanks -> they wouldn't match the lines of package names from the manifest file when calculating the difference 
                
             | 
| Aug 13, 2014 at 14:07 | review | Suggested edits | |||
| S Aug 13, 2014 at 14:18 | |||||
| Jul 9, 2014 at 0:45 | comment | added | jmiserez | See also the answer I posted below. I modified your approach just a bit. | |
| Jul 8, 2014 at 13:06 | comment | added | jmiserez | On my system, it's 595 packages. You can see the list and a detailed comparison here. That is with the extra sedand the correct manifest file for my system. | |
| Jul 8, 2014 at 8:46 | comment | added | Steven D | @jmiserez Hrm, it has been a while since I've looked at this one. Do you have the list of packages that this missed? | |
| Jul 6, 2014 at 14:14 | comment | added | jmiserez | This almost works, but still isn't correct. There are multiple packages and libraries that I certainly didn't install manually contained in the resulting list. I used http://releases.ubuntu.com/releases/trusty/ubuntu-14.04-desktop-amd64.manifestand the additional| sed "s/ *$//"but still no dice. | |
| Jul 2, 2014 at 17:59 | comment | added | josinalvo | actually, deborphan -a | awk '{ print $2 }' | sort -u > currentlyinstalled.txt | |
| Jul 2, 2014 at 17:10 | comment | added | josinalvo | for your first step, you might want deborphan -a | |
| May 23, 2014 at 17:38 | comment | added | Emil Styrke | It seems the aptitude line leaves lots of whitespace at the end of each line.  To remove it, add | sed "s/ *$//"to the pipeline. | |
| S Nov 30, 2013 at 18:40 | history | suggested | pcworld | CC BY-SA 3.0 | 
                
                    as 10.10 links are dead, update to 12.04 links and remove '-d" "' parameter 
                
             | 
| Nov 30, 2013 at 18:38 | review | Suggested edits | |||
| S Nov 30, 2013 at 18:40 | |||||
| S Aug 12, 2013 at 3:57 | history | suggested | Wes Turner | CC BY-SA 3.0 | 
                
                    Add -F '%p' instead of cut to avoid truncating package names at 32 characters. (http://unix.stackexchange.com/a/86087/44804) 
                
             | 
| Aug 12, 2013 at 3:34 | review | Suggested edits | |||
| S Aug 12, 2013 at 3:57 | |||||
| S Jul 13, 2013 at 14:09 | history | suggested | Esteis | CC BY-SA 3.0 | 
                
                    Add an 'executive summary' with all the code together at the top. 
                
             | 
| Jul 13, 2013 at 13:46 | review | Suggested edits | |||
| S Jul 13, 2013 at 14:09 | |||||
| Sep 15, 2012 at 8:44 | review | Suggested edits | |||
| Sep 15, 2012 at 10:05 | |||||
| S Apr 22, 2012 at 13:52 | history | suggested | Martin Ueding | CC BY-SA 3.0 | 
                
                    Sort has a build-in unique functionality. 
                
             | 
| Apr 22, 2012 at 11:14 | review | Suggested edits | |||
| S Apr 22, 2012 at 13:52 | |||||
| Nov 2, 2010 at 4:29 | comment | added | Steven D | Heh, so did I. I'm not an Ubuntu guru so I'd be happy to see an easier solution if somebody can find one. | |
| Nov 2, 2010 at 1:31 | comment | added | phunehehe | You kind of destroy my hope, I thought there was some standard easy way :( | |
| Nov 2, 2010 at 1:31 | vote | accept | phunehehe | ||
| Oct 30, 2010 at 16:38 | comment | added | Steven D | @ephemient: Probably nothing. I don't know much about aptitude and thus used tools I'm familiar with rather than digging around in the man file of a program I never use. | |
| Oct 30, 2010 at 4:57 | comment | added | ephemient | What does your first pipeline do that aptitude search '~i!~M' -F %pdoesn't? | |
| Oct 30, 2010 at 4:37 | history | edited | Steven D | CC BY-SA 2.5 | 
                
                    added 32 characters in body 
                
             | 
| Oct 30, 2010 at 4:22 | history | answered | Steven D | CC BY-SA 2.5 |