D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Shrinking Debian...

 

On Tue, 10 Feb 2009 00:33:27 +0000
Simon Waters wrote:

> If you have a machine with the state you want you could use "dpkg
> --set-selections" and "dpkg --get-selections", but I'm not sure the
> original package list is explicitly stored anywhere.

I might do a "--set-selections" on a clean install of a virtual machine
Debian then. :)

> And "just been installed" is a tad vague - I mean I sometimes install
> Debian and select no additional packages at all, so I get the base
> system only.

Was thinking of a "plain" machine without anything chosen in Tasksel.
Just the "base" system.  Last time I tried to wipe the system except
for the "base" I ended up obliterating everything useful, including apt
and dpkg!

> Original state might be derivable from log files, or from package
> state if you always used the same tool for installing stuff
> (aptitude).
> 
> Alternatively I dare say aptitude (with tasksel for simplicity) can be
> used to reduce Debian to required packages only, or some other subset.
> If you just want any small install like the initial state.
> 
> What are you trying to achieve by doing this?

I'm testing out various scenarios in virtual machines.  I know I could
take a duplicate of the hard-disk image immediately after installing
(before I add anything to the system), but if/when the system gets
deployed to real hardware I'd like to have an idea of how to cleanly
remove everything except the base system.

Essentially it's an exercise purely to see how it's done. :)

Grant.

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html