TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Linux & Opensource > Mandriva Linux

Notices

removing unneeded packages

Mandriva Linux


Reply
 
Thread Tools Display Modes
Old 09-01-2008, 06:16 AM   #1
Matthias Sommer
Guest
 
Posts: n/a
removing unneeded packages

Hello,

I would like to reduce the size of my mandriva (2008.0 one) installation
by removing packages that are not really needed.

How can I find out, what packages I can remove without getting into trouble?

Thanks in advance!

Regards
Matthias
  Reply With Quote
Old 09-01-2008, 06:17 AM   #2
Wes Newell
Guest
 
Posts: n/a
Re: removing unneeded packages

On Tue, 08 Jan 2008 18:47:42 +0100, Matthias Sommer wrote:

> Hello,
>
> I would like to reduce the size of my mandriva (2008.0 one) installation
> by removing packages that are not really needed.
>
> How can I find out, what packages I can remove without getting into
> trouble?
>

Just asking this, I'd probably say you can't. OTOH, it depends on what you
call trouble. You can remove almost everything if you only want a command
line interface. I'd say it' would be easier just to reinstall and only
install what you want. Deselect what you don't want from the default
install.

--
Want the ultimate in free OTA SD/HDTV Recorder?
My Tivo Experience
Tivo HD/S3 compared
AMD cpu help
  Reply With Quote
Old 09-01-2008, 06:19 AM   #3
David W. Hodgins
Guest
 
Posts: n/a
Re: removing unneeded packages

On Tue, 08 Jan 2008 12:47:42 -0500, Matthias Sommer <> wrote:

> How can I find out, what packages I can remove without getting into trouble?


Run drakstats (install the package drakstats first). It has to be run as root.
Within drakstats, select the refresh button. This will extract a list of files
owned by each package, and use the last accessed date, to determine how long
it's been since the package has been used. The resulting list can be sorted
by "Not used since (days)", by clicking on the column name.

This gives you a starting list, of packages to consider removing, but be
cautious. If you have any of the filesystems mounted with noatime, the
last access date will not be correct. I suggest installing urpmi-recover,
which will keep any packages you remove, or update, in /var/spool/repackage,
until you choose to delete those .rpm files. That way, if you remove something,
and then find it breaks something else, it's easy to find the rpm to reinstall.

Another usefull utility, is kdirstat. You can use it to find large files/directories,
and delete the things you know you don't need, like documentation in other languages.

Regard, Dave Hodgins

--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)
  Reply With Quote
Old 09-01-2008, 06:20 AM   #4
Dave Pickles
Guest
 
Posts: n/a
Re: removing unneeded packages

David W. Hodgins wrote:

> On Tue, 08 Jan 2008 12:47:42 -0500, Matthias Sommer
> <> wrote:
>
>> How can I find out, what packages I can remove without getting into
>> trouble?

>
> Run drakstats (install the package drakstats first). It has to be run
> as root.
> Within drakstats, select the refresh button. This will extract a list
> of files owned by each package, and use the last accessed date, to
> determine how long
> it's been since the package has been used. The resulting list can be
> sorted by "Not used since (days)", by clicking on the column name.
>
> This gives you a starting list, of packages to consider removing, but be
> cautious. If you have any of the filesystems mounted with noatime, the
> last access date will not be correct. I suggest installing
> urpmi-recover, which will keep any packages you remove, or update, in
> /var/spool/repackage,
> until you choose to delete those .rpm files. That way, if you remove
> something, and then find it breaks something else, it's easy to find the
> rpm to reinstall.
>
> Another usefull utility, is kdirstat. You can use it to find large
> files/directories, and delete the things you know you don't need, like
> documentation in other languages.


Yet another useful utility is rpm-find-leaves (run from a command prompt).
This gives a list of the installed packages which are not needed as
dependencies for other packages and can therefore be removed. As others
have said, use with care and take backups!

Dave
  Reply With Quote
Old 09-01-2008, 03:17 PM   #5
Matthias Sommer
Guest
 
Posts: n/a
Re: removing unneeded packages

Hello,

>> Run drakstats (install the package drakstats first). It has to be run
>> as root.
>> Within drakstats, select the refresh button. This will extract a list
>> of files owned by each package, and use the last accessed date, to
>> determine how long
>> it's been since the package has been used. The resulting list can be
>> sorted by "Not used since (days)", by clicking on the column name.


looks quite interesting, but there are packages, I assume cannot be used
but listed as last used 0 days ago...

>> Another usefull utility, is kdirstat.


That's somesthing I was looking for - where did my diskspace go.

> Yet another useful utility is rpm-find-leaves (run from a command prompt).
> This gives a list of the installed packages which are not needed as
> dependencies for other packages and can therefore be removed. As others
> have said, use with care and take backups!


this is exactly what I was looking for - Thanks!

Regards
Matthias
  Reply With Quote
Reply

Thread Tools
Display Modes



< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 03:51 AM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional