You are not logged in.
Every so often when I've gone through a period of installing/uninstalling 50 or 60 things, I notice my root partition is filling up, so I start going through and removing things.
For the uninitiated, that means uninstalling things and then running pacman -Rs $(pacman -Qqtd) to clear out unneeded dependencies.
Managed to get rid of about a gig and a half of crap. Felt good.
And in the midst of such perfection,
I can't help but feel diseased.
Offline
I avoid installing things I won't use often to begin with (or remove them when I am done). Removing unneeded locales also freed up many megabytes of space. The root partition is using only two and a half of the seven gigabytes allotted to it.
Last edited by Wintervenom (2009-10-04 20:45:07)
Offline
On my EeePC I only have 4GB for / so I am both careful about what I install, but also regularly -Rs $(pacman -Qqtd). I also back everything up to an external drive and -Scc. Oddly, I also find this is extraordinarily satisfying...
Offline
I use to. Now I just pacman -Scc every few days in an effort to not repartition my primary hard drive.
Offline
Anyone else periodically pacman -Q and "clean house"?
My last resort of procrastination.
Offline
well, I've been running pacman -Scc after every package installation. I'm on a Asus Eee PC 700 (2G surf), with this very small 2G drive, and I'm already out of space. Right now, only 87MB free. I'm new to archlinx and would like to know how can I get a list of installed packages with the size of each package, so I can make room (with pacman -Rs) for at least VLC media player or a similar. I've already installed almost everything I need, I really just need some more free megas to reach the perfect system! Can anyone help me? Thanks.
Offline
I do a pacman -Qe and remove everything I don't need.
Offline
Right now, only 87MB free. I'm new to archlinx and would like to know how can I get a list of installed packages with the size of each package
Perhaps something like:
pacman -Qi | awk 'BEGIN { FS=": " } /^Name/ { printf("%s: ", $2) } /^Installed Size/ {print $2}' | sort -n -t: -k2Offline
Perhaps something like:
pacman -Qi | awk 'BEGIN { FS=": " } /^Name/ { printf("%s: ", $2) } /^Installed Size/ {print $2}' | sort -n -t: -k2
Hi, Thanks for the trick, but nothing comes out of this command on my superuser prompt. I'm missing something? Does it write the output to a file, which I don't know?
Offline
For the uninitiated, that means uninstalling things and then running pacman -Rs $(pacman -Qqtd) to clear out unneeded dependencies.
For me, pacman -Rs $(pacman -Qqtd) don't work.
This method give me wrong packages, for example:
bash$ pacman -Qqtd
automake
automoc4
bigreqsproto
cdrdao
cmake
cyrus-sasl
flex
git
glproto
gtk-qt-engine
kdemultimedia-kmix
kdemultimedia-mplayerthumbs
libcaptury
libidn
libmsn
libmtp
libnjb
libotr
libstdc++5
mercurial
netkit-bsd-finger
normalize
openslp
ortp
pkgconfig
postgresql
pyqt
qca-ossl
resourceproto
rpcbind
sox
speex
subversion
xcmiscproto
xf86driproto
xtransMuch of this packages I really don't know if need it or no, but for example, I really need: cdrao (k3b), git, suversion and mercurial (some packages from aur need it), pyqt (I install it explicit, for programming), gtk-qt-engine (gtk under kde4 look n feel), kdemultimedia-kmix (I really need it).
It's a bug? It's a bad usage of pacman?
PD: sorry my poor english
Offline
Hi, Thanks for the trick, but nothing comes out of this command on my superuser prompt. I'm missing something? Does it write the output to a file, which I don't know?
This should be printed to standard output. I can only guess the output from 'pacman -Qi' differs (a different field separator perhaps?). Someone more familiar with pacman might be aware of an exact cause.
You may be able to modify this without too much difficulty by examining the output from pacman -Qi and adjusting the <>'d sections to suit:
[...]awk 'BEGIN { FS="<field separator>" } /^<Field1>/ { printf("%s: ", $2) } /^<Field2>/ {print $2}'[...]Offline
When i run 'pacman -Qqtd' I get:
bigreqsproto
db4.5
dirmngr
fluidsynth
git
glproto
gtk2-perl
imake
lcms
libelf
liblbxutil
libnotify
libraw1394
libsmbios
libxkbui
libxtrap
opencdk
pinentry
qt
ruby
sdl_image
taglib
termcap-compat
xorg-utils
xtrans
zvbi
I have vlc installed and know QT is a dependency. Why is it in this
list? As well uninstalling git and ruby is not what I want.
Offline
thanks, fijam. pacraph running from the command line really did the trick. I found that openoffice is taking too much space. I'm looking for a way to install only the writer, impress and calc components, or for a way to remove the math, draw and base components. but this is subject for another thread, I guess. thanks everyone.
Offline
Hi all,
This command is from the wiki here:
Pacman: ( It's about half-way down)
http://wiki.archlinux.org/index.php/Pacman
LANG=C pacman -Qi | sed -n '/^Name[^:]*: \(.*\)/{s//\1 /;x};/^Installed[^:]*: \(.*\)/{s//\1/;H;x;s/\n//;p}' | sort -nk2as an alias for bashrc:
alias package_size="LANG=C pacman -Qi | sed -n '/^Name[^:]*: \(.*\)/{s//\1 /;x};/^Installed[^:]*: \(.*\)/{s//\1/;H;x;s/\n//;p}' | sort -nk2"or
This is something I just whipped up that seems to work too. I actually forgot I had an alias for the above command while making this. Notice my command is close to the above but his/hers is more elegant in my opinion as it is almost pure sed.
pacman -Qi | egrep 'Name|Installed Size' | sed -n '/Name/{N; s/\n/ /; s/ Installed Size //;s/ *//p}' | sort -n -k3In solving a problem of this sort, the grand thing is to be able to reason backward. That is a very useful accomplishment, and a very easy one, but people do not practice it much. In the everyday affairs of life it is more useful to reason forward, and so the other comes to be neglected. There are fifty who can reason synthetically for one who can reason analytically. --Sherlock Holmes
Offline
thanks, fijam. pacraph running from the command line really did the trick. I found that openoffice is taking too much space. I'm looking for a way to install only the writer, impress and calc components, or for a way to remove the math, draw and base components. but this is subject for another thread, I guess. thanks everyone.
Also, as an alternative to OOo you could try Abiword (especially abiword-light from AUR) and Gnumeric. I personally would not try Arch on <4GB drive space, though.
Offline
I do a pacman -Sc periodically to clean all the uninstalled cache and a pacman -Qdt to check for unneeded dependencies to remove.
Offline
Offline
du /var/cache/pacman/pkg -h
8.8G /var/cache/pacman/pkgI have plenty of space so I never clean out my pacman cache. It has saved me once or twice when I had to roll back a package because I was having issues. Once with cups and once with texlive.
Offline
I'm using often localepurge, but something unneeded still remain.
I'd like some better filtering by something like pacman -Ql |grep $UNWANTED-LOCALES >> deleting_list.. On the other hand may be an idea to only include the necessary locales on the packages and saving a bunch of bandwidth ![]()
packaging on-demand? ![]()
F
do it good first, it will be faster than do it twice the saint ![]()
Offline
SomeGuyDude wrote:For the uninitiated, that means uninstalling things and then running pacman -Rs $(pacman -Qqtd) to clear out unneeded dependencies.
For me, pacman -Rs $(pacman -Qqtd) don't work.
This method give me wrong packages, for example:bash$ pacman -Qqtd automake automoc4 bigreqsproto cdrdao cmake cyrus-sasl flex git glproto gtk-qt-engine kdemultimedia-kmix kdemultimedia-mplayerthumbs libcaptury libidn libmsn libmtp libnjb libotr libstdc++5 mercurial netkit-bsd-finger normalize openslp ortp pkgconfig postgresql pyqt qca-ossl resourceproto rpcbind sox speex subversion xcmiscproto xf86driproto xtransMuch of this packages I really don't know if need it or no, but for example, I really need: cdrao (k3b), git, suversion and mercurial (some packages from aur need it), pyqt (I install it explicit, for programming), gtk-qt-engine (gtk under kde4 look n feel), kdemultimedia-kmix (I really need it).
It's a bug? It's a bad usage of pacman?
PD: sorry my poor english
I used to think the same thing.
-Qqtd returns packages that were installed as a *runtime* dependency for another package which is no longer installed. i've never seen it report packages not satisfying these two conditions.
mercurial, subversion, automake... these are common *buildtime* dependencies. they're often required by AUR packages which you build yourself... once built, you no longer need these packages and they are picked up by -Qqtd. the more i use AUR, the less i can use that handy find-the-orphans one-liner effectively.
the other ones that you still think are mistakes, please use -Qi to check dependencies (i.e. k3b does not depend on cdrao) and to make sure things are listed as "explicitly installed" (i.e. pyqt).
if -Qi really contradicts -Qqdt, feel free to report a bug.
//github/
Offline
du /var/cache/pacman/pkg -h 8.8G /var/cache/pacman/pkgI have plenty of space so I never clean out my pacman cache. It has saved me once or twice when I had to roll back a package because I was having issues. Once with cups and once with texlive.
I second that, I remember when I was first using arch I ran all the maintenance tasks that were listed in shaman and it slowed my download speed to a crawl, idk why this happened. I never really have to worry about space since I have a total of 1.2TB and my root partition is 20gb with 50gb of free space available to whatever on that disk
Offline
I used to think the same thing.
-Qqtd returns packages that were installed as a *runtime* dependency for another package which is no longer installed. i've never seen it report packages not satisfying these two conditions.
mercurial, subversion, automake... these are common *buildtime* dependencies. they're often required by AUR packages which you build yourself... once built, you no longer need these packages and they are picked up by -Qqtd. the more i use AUR, the less i can use that handy find-the-orphans one-liner effectively.
the other ones that you still think are mistakes, please use -Qi to check dependencies (i.e. k3b does not depend on cdrao) and to make sure things are listed as "explicitly installed" (i.e. pyqt).
if -Qi really contradicts -Qqdt, feel free to report a bug.
Thanks brisbin33:
I'm trying to finish to understand your words and the mechanism by which it operates this command.
For example, i asked pacman for kdemultimedia-kmix, and It replied that was installed as a dependency, but no longer requires anyone.
The thing is I constantly using kmix, then to solve the issue I run:
pacman -Rsn kdemultimedia-kmix && pacman -S kdemultimedia-kmixNow, pacman say that kmix is "explicitly installed".
I think maybe it's a way to clean my system.
I'll have to see what the **real** status of the other packages.
Thanks again brisbin
Offline
You don't have to delete and re-add packages to change the explicit/dep status. pacman has flags to do it for you, or you can hand-edit the desc file in the pacman DB - look at those files and you'll see the format is very simple.
Offline
thanks, fijam. pacraph running from the command line really did the trick. I found that openoffice is taking too much space. I'm looking for a way to install only the writer, impress and calc components, or for a way to remove the math, draw and base components. but this is subject for another thread, I guess. thanks everyone.
Hate to disappoint you but it's openoffice as a whole that eats your space and not the separate functionality. They share a lot of codebase afaik. The split-out packages on distros that do use them are tiny, the core part quite big
.
You're better off resizing your partitions or, if that's no option, trying another graphical environment. KDE and Gnome both pull in a lot of stuff, I have a lightweight system but still OOo on it because I want to handle MS documents as well as possible without having to install MS Office in Wine or in some virtual environment.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline