listing installed packages
Ray Parrish
crp at cmc.net
Wed Mar 18 10:26:03 UTC 2009
Donald Raikes wrote:
> Hello,
>
> I have had my ubuntu 8.10 system installed for about a week, and have
> added a lot of packages for testing purposes.
>
> Is there a command-line way to list all installed packages so I can see
> what has been installed?
>
> I am blind, and while I can use synaptek, it is pretty cumbersome, so I
> would preffer to just use apt to generate a list to a text file which I
> can browse using my editor.
> Love,
> Me
>
Hello,
Here's another way. It requires the installation of apt-show-versions
first, but works pretty good.
apt-show-versions > ~/versions.txt
sort ~/versions.txt > ~/sversions.txt
rm ~/versions.txt
This gives you an alphabetically sorted list of all of your packages,
with their current version information. If you need to get the list of
packages which need updating use the following.
apt-show-versions -u > ~/needsupdate.txt
If you would prefer a list sorted by date so you can tell what has been
added recently give this a try.
cd /usr/share
find -maxdepth 1 -type d -printf '%f %T+\n' | sort -s -t ' ' -k 2.1nr
-k 2.6n -k 2.9n -k 2.12r -k 2.15 -k 2.18 > ~/datesort.txt
That wiill give you a package list with the most recently installed
dates at the top of the file.
Later, Ray Parrish
Human reviewed index of links about the computer
http://www.rayslinks.com
Poetry from the mind of a Schizophrenic
http://www.writingsoftheschizophrenic.com
More information about the ubuntu-users
mailing list