LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   better way to organize packages? (https://www.linuxquestions.org/questions/debian-26/better-way-to-organize-packages-378499/)

mma8x 10-30-2005 10:49 PM

better way to organize packages?
 
i'm trying to find a way to sort installed packages by size, date installed, etc; can't find a way to do this with kpackage, synaptic, or aptitude. any other ways to do this?

makuyl 10-31-2005 07:28 AM

By size: dpkg-query -W --showformat='${Installed-Size} ${Package}\n' | sort -n
Not sure about date and I'm not on a debian box now, you do the googling ;)

archtoad6 11-21-2005 08:21 PM

Cool, worked on my SimplyMEPIS box. Time to RTFM for dpkg-query.

BTW,
Code:

dpkg-query -W --showformat='${Installed-Size} ${Package}\n' \
 | sort -n                                                  \
 | awk  '{printf "%8d  %s\n",$1,$2}'                        \
 | less

gave a really nice output


All times are GMT -5. The time now is 01:36 AM.