You are not logged in.

#1 2005-10-13 23:50:31

tyler
Member
From: Montreal
Registered: 2004-06-05
Posts: 35

Clean up Arch

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

#2 2005-10-13 23:52:31

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Clean up Arch

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

#3 2005-10-14 00:06:08

Cam
Member
From: Brisbane, Aus
Registered: 2004-12-21
Posts: 658
Website

Re: Clean up Arch

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 smile

Offline

#4 2005-10-14 00:11:25

tyler
Member
From: Montreal
Registered: 2004-06-05
Posts: 35

Re: Clean up Arch

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

#5 2005-10-14 00:18:20

Deciare
Member
From: UTC -8:00
Registered: 2005-05-05
Posts: 79

Re: Clean up Arch

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

#6 2005-10-14 00:26:22

tyler
Member
From: Montreal
Registered: 2004-06-05
Posts: 35

Re: Clean up Arch

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

#7 2005-10-14 00:46:12

Deciare
Member
From: UTC -8:00
Registered: 2005-05-05
Posts: 79

Re: Clean up Arch

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

#8 2005-10-14 00:59:04

Cam
Member
From: Brisbane, Aus
Registered: 2004-12-21
Posts: 658
Website

Re: Clean up Arch

tyler wrote:

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

#9 2005-10-14 13:23:59

mr_brightside
Member
Registered: 2005-09-01
Posts: 78

Re: Clean up Arch

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

#10 2005-10-14 17:01:53

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: Clean up Arch

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.

Offline

#11 2005-10-14 22:48:11

mr_brightside
Member
Registered: 2005-09-01
Posts: 78

Re: Clean up Arch

Thanks a lot IceRAM, much appreciated. big_smile

Offline

Board footer

Powered by FluxBB