Trimming the fat off an installation

Dear all

As a Debian n00b I enthusiastically gorged myself on the wonders and
ease of apt-get. Now, having recovered from my initial over-indulgence,
like one considers one's post-festive waistline, I am wanting to figure
out a way to rid myself of packages that I don't use, orphan files, and
other random bits of software detritus.

I am running an Etch -> Lenny, and have deborphan installed. I am very
wary of just launching into it though because it seemed to call up a lot
of files and I don't - obviously - want to break anything.

Can someone point me in the direction of some guides/pointers that are
current and reliable, or even share some personal experiences of
trimming down the "fat".

Many thanks for any help.

Andy

--

"If they can get you asking the wrong questions, they don't have to worry about the answers." - Thomas Pynchon, "Gravity's Rainbow"

--

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Trimming the fat off an installation

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/10/07 01:23, andy wrote:
> Dear all
>
> As a Debian n00b I enthusiastically gorged myself on the wonders and
> ease of apt-get. Now, having recovered from my initial over-indulgence,
> like one considers one's post-festive waistline, I am wanting to figure
> out a way to rid myself of packages that I don't use, orphan files, and
> other random bits of software detritus.
>
> I am running an Etch -> Lenny, and have deborphan installed. I am very
> wary of just launching into it though because it seemed to call up a lot
> of files and I don't - obviously - want to break anything.
>
> Can someone point me in the direction of some guides/pointers that are
> current and reliable, or even share some personal experiences of
> trimming down the "fat".
>
> Many thanks for any help.

Troll thru your GUI's Application menu for apps that you know you'll
never use is also helpful.

After you do that, run gtkorphan and be semi-aggressive about what
you zap, but also rely on the "simulate" option so that your bad
judgment doesn't hose you.

- --
Ron Johnson, Jr.
Jefferson LA USA

Give a man a fish, and he eats for a day.
Hit him with a fish, and he goes away for good!

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGQss2S9HxQb37XmcRApM/AJ4qcRmlHUekqqWrx8lbmxqP+ZagkACgzu7u
M1W6xnPds/W3tfIIQBi7U3g=
=phdN
-----END PGP SIGNATURE-----

--

Trimming the fat off an installation

On Thu, May 10, 2007 at 07:23:27AM +0100, andy wrote:
> Dear all
>
> As a Debian n00b I enthusiastically gorged myself on the wonders and
> ease of apt-get. Now, having recovered from my initial over-indulgence,
> like one considers one's post-festive waistline, I am wanting to figure
> out a way to rid myself of packages that I don't use, orphan files, and
> other random bits of software detritus.
>
> I am running an Etch -> Lenny, and have deborphan installed. I am very
> wary of just launching into it though because it seemed to call up a lot
> of files and I don't - obviously - want to break anything.
>
> Can someone point me in the direction of some guides/pointers that are
> current and reliable, or even share some personal experiences of
> trimming down the "fat".
>

Add one more package: aptitude-doc.

Read the manual.

Search this list on using aptitude interactivly.

Use aptitude interactively and go through each package, having only
those packages that _you_ want installed as manual (no 'A') and
everthing else marked as automaticlly installed to meet dependencies
('A') flag. Also, adjust the options so that recommends are marked for
automatic install.

You can hit 'g' at any time to see what it wants to do, and edit that to
fine tune it, hit 'q' to go back to the main listing and tweak some
more, hit 'g' again, verify that it will only do what you want, hit 'g'
again to confirm. Sit back and watch your computer's waist line shrink
amazingly.

After that, any package you select will bring in its depends and if you
remove it, all those packages that are no longer needed are removed as
well.

Doug.

--

Trimming the fat off an installation

On Thu, May 10, 2007 at 09:07:45AM -0400, Douglas Allan Tutty wrote:

> ('A') flag. Also, adjust the options so that recommends are marked
> for automatic install.

Did you mean "not" marked?

Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

Trimming the fat off an installation

On Thu, May 10, 2007 at 06:53:35PM +0300, Andrei Popescu wrote:
> On Thu, May 10, 2007 at 09:07:45AM -0400, Douglas Allan Tutty wrote:
>
> > ('A') flag. Also, adjust the options so that recommends are marked
> > for automatic install.
>
> Did you mean "not" marked?

Yes, sorry. Not marked for automatic install.

Doug.

--

Trimming the fat off an installation

Chris Bannister wrote:
> On Thu, May 10, 2007 at 07:23:27AM +0100, andy wrote:
>
>> Dear all
>>
>> As a Debian n00b I enthusiastically gorged myself on the wonders and
>> ease of apt-get. Now, having recovered from my initial over-indulgence,
>> like one considers one's post-festive waistline, I am wanting to figure
>> out a way to rid myself of packages that I don't use, orphan files, and
>> other random bits of software detritus.
>>
>> I am running an Etch -> Lenny, and have deborphan installed. I am very
>> wary of just launching into it though because it seemed to call up a lot
>> of files and I don't - obviously - want to break anything.
>>
>> Can someone point me in the direction of some guides/pointers that are
>> current and reliable, or even share some personal experiences of
>> trimming down the "fat".
>>
>> Many thanks for any help.
>>
>
> apt-get --purge remove gnome
> apt-get --purge remove kde
> apt-get install fvwm
>
Good idea, but it wont work. Both 'gnome' and 'kde' are meta-packages.
All they do is depend on a bunch of other packages which would not be
removed by the above commands. Aptitude would remove the dependancies
when removing the meta-packages IF gnome and kde were installed by
aptitude. Since th OP says that he is using apt-get, however, this will
not work.

--
Marc Shapiro

--

Trimming the fat off an installation

andy wrote:
> Dear all
>
> As a Debian n00b I enthusiastically gorged myself on the wonders and
> ease of apt-get. Now, having recovered from my initial over-indulgence,
> like one considers one's post-festive waistline, I am wanting to figure
> out a way to rid myself of packages that I don't use, orphan files, and
> other random bits of software detritus.
>
> I am running an Etch -> Lenny, and have deborphan installed. I am very
> wary of just launching into it though because it seemed to call up a lot
> of files and I don't - obviously - want to break anything.
>
> Can someone point me in the direction of some guides/pointers that are
> current and reliable, or even share some personal experiences of
> trimming down the "fat".
>
> Many thanks for any help.
>
> Andy
>

What I ended up doing is creating a script to install my system. That
script has exactly what I want and I keep updating it.
But it will take time to do installs and finding out what is missing or
superfluous

Hugo

--

Trimming the fat off an installation

On Thu, 2007-05-10 at 07:23 +0100, andy wrote:
> I am wanting to figure
> out a way to rid myself of packages that I don't use, orphan files, and
> other random bits of software detritus.

If you have popularity-contest installed and have been running it for a
while you can use it to filter out seldom or never used packages.

There's even a script included, popcon-largest-unused, for listing
unused packages by size.

--
Cheers,
Sven Arvidsson
http://www.whiz.se
PGP Key ID 760BDD22

Trimming the fat off an installation

Sven Arvidsson wrote:

On Thu, 2007-05-10 at 07:23 +0100, andy wrote:

I am wanting to figure
out a way to rid myself of packages that I don't use, orphan files, and
other random bits of software detritus.

If you have popularity-contest installed and have been running it for a
while you can use it to filter out seldom or never used packages.

There's even a script included, popcon-largest-unused, for listing
unused packages by size.

Neat command - thanks Sven! Thanks for the many other suggestions from
you guys!

I found a whole bunch of files or rather a long-list of entries like:

0 0 libpoppler0c2-qt <NOFILES>
0 0 libsdl-pango1 <NOFILES>
0 0 kdenetwork-kfile-plugins <NOFILES>
0 0 libnetcdf3 <NOFILES>
0 0 libtotem-plparser1 <NOFILES>

Am I correct in understanding that these list packages against which no
recent use entries are recorded in the log files? Would this be a good
program to run against deporphan or does one identify specific packages
that show up in this list to run through an "apt-get remove --purge"
routine?

Thanks

A

--

"If they can get you asking the wrong questions, they don't have to worry about the answers." - Thomas Pynchon, "Gravity's Rainbow"

Trimming the fat off an installation

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/10/07 18:14, andy wrote:
> Sven Arvidsson wrote:
>> On Thu, 2007-05-10 at 07:23 +0100, andy wrote:
>>
>>> I am wanting to figure out a way to rid myself of packages that I
>>> don't use, orphan files, and other random bits of software detritus.
>>>
>>
>> If you have popularity-contest installed and have been running it for a
>> while you can use it to filter out seldom or never used packages.
>>
>> There's even a script included, popcon-largest-unused, for listing
>> unused packages by size.
>>
>>
> Neat command - thanks Sven! Thanks for the many other suggestions from
> you guys!
>
> I found a whole bunch of files or rather a long-list of entries like:
>
> 0 0 libpoppler0c2-qt
> 0 0 libsdl-pango1
> 0 0 kdenetwork-kfile-plugins
> 0 0 libnetcdf3
> 0 0 libtotem-plparser1
>
> Am I correct in understanding that these list packages against which no
> recent use entries are recorded in the log files? Would this be a good
> program to run against deporphan or does one identify specific packages
> that show up in this list to run through an "apt-get remove --purge"
> routine?

If you "apt-get --purge remove $SOME_LIBRARY" and it only removes
that one package, then you've got your answer!! If it wants to also
remove "higher" dependencies, then you can decide whether you also
want to get rid of the other packages.

A second xterm from which you can run "apt-cache show" is a big help.

- --
Ron Johnson, Jr.
Jefferson LA USA

Give a man a fish, and he eats for a day.
Hit him with a fish, and he goes away for good!

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGQ8CBS9HxQb37XmcRAnBAAJ90f0KDqzkV8bvgcFGg1CqfXOsQdACcCHjL
ja/FOfJPvgmHooTi/orJHJM=
=S4QK
-----END PGP SIGNATURE-----

--

Trimming the fat off an installation

On Fri, 2007-05-11 at 00:14 +0100, andy wrote:
> I found a whole bunch of files or rather a long-list of entries like:
>
> 0 0 libpoppler0c2-qt
> 0 0 libsdl-pango1
> 0 0 kdenetwork-kfile-plugins
> 0 0 libnetcdf3
> 0 0 libtotem-plparser1
>
> Am I correct in understanding that these list packages against which
> no recent use entries are recorded in the log files? Would this be a
> good program to run against deporphan or does one identify specific
> packages that show up in this list to run through an "apt-get remove
> --purge" routine?

From the README of popularity-contest, (see also the FAQ)

NOFILES means that no files in the package seemed to be programs, so
, , and are invalid.

So those packages may, or may not be, still in heavy use.

--
Cheers,
Sven Arvidsson
http://www.whiz.se
PGP Key ID 760BDD22

Syndicate content