Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-16-2006, 05:02 AM   #1
LQ Newbie
Registered: May 2006
Posts: 19

Rep: Reputation: 0
Listing program size

My HDD is almost full, time to uninstall some useless stuff. How do I list all programs I have installed by size in terminal?
Old 05-16-2006, 05:59 AM   #2
Senior Member
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,491

Rep: Reputation: 52

the command:

ls -l /usr/bin

will list all programs with full information including the size (in bytes) of the program. Be careful what you choose to delete, though, because this file contains all of the executable programs by the normal users.

Hope this helps

Old 05-16-2006, 08:13 AM   #3
Senior Member
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
I strongly advise against removing anything from /usr/bin or /bin for that matter.
Try using a package manager to get a list of what you have installed and uninstall the stuff you
haven't used in ages (except for the system programs, of course).

Retrieving the total size of an installed package is not so straight-forward as simply "ls -l"ing in some directory.

@cupoftea: what distro are you using? Have you used a package manager to install your software?
Old 05-16-2006, 08:22 AM   #4
Registered: Mar 2006
Posts: 96

Rep: Reputation: 16
i have same case, my distro is debian (without X)?

how get all softwares installeds and you size with apt?

Old 05-16-2006, 09:23 AM   #5
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 55
Originally Posted by xcore_on
i have same case, my distro is debian (without X)?

how get all softwares installeds and you size with apt?

I can answer for debian, sorry for others.. For others you really should not erase manually, as someone said, use your own package manager!!
dpkg-query -W -f='${Package} ${Installed-Size}\n' | sort -n +1
You should look at these:
->localepurge will free some useless space
->debfoster will tell you have takes room while not really needed/used

have fun

Last edited by nx5000; 05-16-2006 at 09:25 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Listing Directory Size andy7t Linux - Software 2 12-14-2008 02:46 PM
directory size listing with ls mikemrh9 Linux - General 2 01-05-2005 12:04 PM
Listing files from within a C program? PsychosisNode Programming 4 11-16-2003 10:40 AM
Font listing program? Jiawen Linux - Software 2 09-23-2003 11:36 PM
program size question aditya Linux - Software 1 05-01-2003 03:52 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:20 AM.

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