Daily maintenance

Derek Broughton news at pointerstop.ca
Thu Jun 19 16:16:57 UTC 2008


Leif Gregory wrote:

> On Thu, 19 Jun 2008 07:17:19 -0700
> David Vincent <dvincent at sleepdeprived.ca> wrote:
> 
>> do i need the sudo?  i've been wondering how to get a list of packages
>> like this.
> 
> His worked for me too, but I typically do a much shorter command:
> 
> dpkg -l > ~/Documents/installed_pkgs.txt
 
That tells you _all_ the packages.  It's not useful for actually
regenerating a configuration, because it's unaware of the difference
between manually (the ~M in my script) and automatically installed
packages.  So if I take that list and install it onto a new system,
everything is registered as "manually installed", and nothing ever gets
removed when it's no longer needed.
-- 
derek





More information about the ubuntu-users mailing list