You are not logged in.
hello,
I have one question. Is it possible to remove all the packages except those in base, 'cause I want to have a clear system and don't want to reinstall my arch.
Thanks for reply.
Last edited by quack (2010-01-18 08:44:52)
Offline
Untested....
base=$(pacman -Sqg base | sort | uniq)
installed=$(pacman -Qq)
remove=$(comm -13 <(printf "%s\n" "${base[@]}") \
<(printf "%s\n" "${installed[@]}"))
pacman -R ${remove[@]}
Offline
There's a way with a command I don't remember.
But it's somewhat like this:
pacman -Rscnd ${<command>}
/me wants you to detele this account... please delete it.
Offline
There's a way with a command I don't remember.
But it's somewhat like this:
pacman -Rscnd ${<command>}
Umm, that's almost bound to end in disaster eventually...
Offline
thx for reply .. i'll try it
Offline
did it work?
Acer Aspire V5-573P Antergos KDE
Offline
Have a look at this post: http://bbs.archlinux.org/viewtopic.php? … 34#p687234
Offline
Have a look at this post: http://bbs.archlinux.org/viewtopic.php? … 34#p687234
the post shows:
pacman -Qgq base base-devel # all packages in groups base and base-devel, add more if you want
pacman -Qetq # all packages explicitly installed
pacman -Qetq | fgrep -vxf <(pacman -Qgq base base-devel)
=========================================
comm -23 <(pacman -Qetq) <(pacman -Qgq base base-devel xorg | sort)
Now, is there a way to also remove all left over files in the system not belonging to these groups? I'm glad someone brought up this topic, I've been wondering about cleaning the system out without doing a fresh install.
Last edited by toxygen (2010-01-28 01:41:31)
"I know what you're thinking, 'cause right now I'm thinking the same thing. Actually, I've been thinking it ever since I got here:
Why oh why didn't I take the BLUE pill?"
Offline
same here it would be awesome if all config files an also be purged (other than home directory)
Acer Aspire V5-573P Antergos KDE
Offline
same here it would be awesome if all config files an also be purged (other than home directory)
To purge config files you just re-install base. That's how I resolved a kernel panic that I had...
Arch x86_64 ATI AMD APU KDE frameworks 5
---------------------------------
Whatever I do, I always end up with something horribly mis-configured.
Offline
Untested....
base=$(pacman -Sqg base | sort | uniq) installed=$(pacman -Qq) remove=$(comm -13 <(printf "%s\n" "${base[@]}") \ <(printf "%s\n" "${installed[@]}")) pacman -R ${remove[@]}
doesn't work for me ..
Offline