kcalc dependencies

Derek Broughton derek at pointerstop.ca
Sat Mar 21 14:28:53 UTC 2009


Ray Parrish wrote:

> There are a couple of ways to tell what packages you have installed, One
> is a quick command line trick that polls your /usr/share/ folder for
> package names which have been installed, and their installation dates,
> and sorts them by install date. It is as follows -
> 
> 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 > ~/installed.txt

Ugh!  What a horrible way to find your packages.  If you _do_ find anything
that's not actually from an Ubuntu package you're not likely to have a clue
how it was installed anyway, and if it is from an Ubuntu package, using
apt/dpkg is better.

> Note that the second command is one long line which wraps to the second
> line in here. 

If you want to show a command spanning multiple lines, it's usually best to
do:
 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 \
  > ~/installed.txt

because that can be cut and pasted (\ at the end of a shell command line
continues on a new line).

> There may also be one or two packages found at /opt, /etc/opt, 
> and/or /usr/share/applications/ as well. On my system, there is the real
> [real player] package at /opt/, nothing at /etc/opt/, and kde,
> screensavers, and kde4 at /usr/share/applications/ with everything else
> showing in /usr/share/.

If your software is properly behaved, the only place you should find
anything that was not installed from packages is in either /opt
or /usr/local.  Definitely _not_ in /etc/opt.

> To get just the alphabetically sorted package names installed use -

# dpkg --get-selections
-- 
derek





More information about the ubuntu-users mailing list