You are not logged in.
Pages: 1
I've had arch installed for about 2 years now, is there a pacman option to clean up unused libs and the like? I don't want to re-install, just a cleaner install.
Till human voices wake us, and we drown. -Eliot
Offline
I believe there was a script around that checked what files were currently owned (pacman -Qo) or something, then found the files that were not in that set (excluding home and parts of var I believe), and nuked the rest.
you might search the forums...
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
I did something like this the other day, used bash to loop through pacman -Q and then in another terminal, if I came across a package I didn't want/use I pacman -R'd it. That doesn't get rid of files not owned by any package but it was a start
Offline
But once i pacman -R'ed every package i didn't want, i'm sure that there a lot of extra fat to cut... I mean, i went from xfree to xorg, devfs to udev, and a lot of other upgrades along the way. My system just doesn't feel as zippy as it once was.
Till human voices wake us, and we drown. -Eliot
Offline
System clean-up is where
pacman -Rs
comes in so very handy. It's a feature unmatched by any other package manager I've used.
Offline
Is there any chance this will destroy my system if I have manualy compiled some stuff and installed them without pacman?
Till human voices wake us, and we drown. -Eliot
Offline
Only if the stuff you compiled depends on libraries that get removed by pacman (-Rs) because it thinks there aren't any more packages that depend on them.
Then again, if you installed a library package for the purpose of compiling something yourself, the package is marked "explicitly installed", so those packages shouldn't be touched by pacman's remove operation unless you explicitly ask to remove them.
Offline
Is there any chance this will destroy my system if I have manualy compiled some stuff and installed them without pacman?
I'm not sure but I'd say probably. Those files wouldn't be "owned" by any packages so according to pacman they're junk.
Offline
If anyone finds the script mentioned by cactus in the post earlier, please post it so we can get a copy for ourselves. It'd be immensely useful to have.
Offline
Well, I am sure I haven't posted this script anywhere before, so here you go. It is probably similar to what cactus was thinking about. I have made it some time ago, before I installed netbeans with the default installer. (I created a snapshot before and a snapshot after - comparing the 2 outputs with diff for example, can give you the list of files installed meanwhile)
http://mircea.bardac.net/archlinux/tools/lostfiles
Note that some packages are built wrong and you might see some strange output (example: registered files in /tmp which got removed)- didn't have time to investigate.
:: / my web presence
Offline
Thanks a lot IceRAM, much appreciated.
Offline
Pages: 1