LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-05-2007, 10:36 AM   #1
grayFalcon
Member
 
Registered: Jan 2003
Distribution: Debian
Posts: 69

Rep: Reputation: 15
Treemap view for installed packages?


Hello everybody!

I'm just wondering... Linux has the one disadvantage that, as you use it, it tends to organically grow larger and larger. To the point where the only options are either a fresh install, or a few nights of searching for stuff to remove that doesn't break too many other packages that you still need.

So my question is: Is there something like:
a) A treemap view for packages, to see which ones are most worth removing, because they would free up the most space on the drive
b) A graph view for packages, to see which branches can be cut off without affecting too many others?

Thanks a lot in advance,
-Wojtek Dabrowski
 
Old 07-05-2007, 10:50 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Update: Sorry, this information is for rpm based distributions only. I don't know how to accomplish the same for deb/apt based systems.

You can easily see the largest rpm files on your system with (for example):

Code:
rpm -qa --qf '%{SIZE} %{NAME}-%{VERSION}-%{RELEASE} %{ARCH}\n' | sort -r -n | less
If you want a graph view of package relationships, you can use the rpmgraph tool, though it's not particularly useful. Just do a 'yum remove' to see the list of packages that will need to be removed to remove a given package or group of packages.

Last edited by macemoneta; 07-05-2007 at 10:52 AM.
 
Old 07-05-2007, 10:55 AM   #3
grayFalcon
Member
 
Registered: Jan 2003
Distribution: Debian
Posts: 69

Original Poster
Rep: Reputation: 15
Thanks for the answer!

Problem is (sorry I didn't mention that in my original post) I'm running Ubuntu... So does anybody know the debian way of doing this?

Thanks a lot in advance,
-Wojtek Dabrowski
 
Old 07-05-2007, 11:07 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
For debian:

Create file /etc/apt/apt.conf.d/dot containing:
Quote:
APT::Cache::GivenOnly "True" ;
(this is for restricting the graph to only what you select, otherwise it will display all installed packages=> machine crash expected..)

Install graphviz (this is for converting a tree text file representation to an image)
Install imagemagick (this is for displaying a postcript file)

Code:
apt-cache dotty xserver-xorg | dot -Tps | display
You get this
 
Old 07-05-2007, 11:12 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
a) A treemap view for packages, to see which ones are most worth removing, because they would free up the most space on the drive
For disc space, you can play with:
debfoster
localepurge
 
Old 07-05-2007, 10:42 PM   #6
grayFalcon
Member
 
Registered: Jan 2003
Distribution: Debian
Posts: 69

Original Poster
Rep: Reputation: 15
Thanks a lot everybody, I'll try those things asap!

Greets,
-Wojtek
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to save a list of installed packages and install these packages later mandavi Ubuntu 5 09-07-2009 11:36 AM
how to view which packages are from which repo? kushalkoolwal Debian 6 05-11-2006 09:59 PM
Sort installed packages by # of dependant packages installed brianez21 Debian 1 01-18-2006 05:06 PM
what packages to view chinese? ralphb Debian 2 09-24-2004 09:58 AM
how to view installed programs? jasonmcneil0 Linux - Newbie 7 10-29-2003 12:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration