You are not logged in.

#1 2015-06-01 13:16:25

GunnDawg
Member
Registered: 2015-04-14
Posts: 86

[SOLVED] Removing leftover config files

I've only recently discovered the -n flag when removing packages (pacman -Rns). I've installed and uninstalled packages in the past not using this flag, thus the config files and other unused files are probably floating around somewhere. Is there anyway for me to clean up the system from when I didnt use this -n flag? From now on I'll be using -Rns but what am I to do about the uninstalled packages prior to this? I cant remember off the top of my head exactly which packages I've removed in the past so it may be hard to track down with a -Ql. I'm a bit OCD when it comes to my file system and try to keep it as clean as possible, so naturally this is bugging me.

Thanks for any and all input.

Last edited by GunnDawg (2015-06-02 04:05:51)

Offline

#2 2015-06-01 14:14:00

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Removing leftover config files

Check the pacman log to see a list of packages you've installed, removed, updated etc.

Offline

#3 2015-06-01 15:16:24

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,797
Website

Re: [SOLVED] Removing leftover config files

When removing without the -n flag, the old configurations are saved as .pacsave files

I believe that pacdiff can find these, if not, pacdiffviewer can. Alternatively, run a find command manually.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2015-06-01 23:07:15

GunnDawg
Member
Registered: 2015-04-14
Posts: 86

Re: [SOLVED] Removing leftover config files

So if "find .pacsave" doesnt find anything then does that mean that there is no .pacsave files? I'm not real familiar with the find command and the wiki doesnt give explicit examples. Thanks.

Offline

#5 2015-06-01 23:41:21

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,797
Website

Re: [SOLVED] Removing leftover config files

GunnDawg wrote:

the wiki doesnt give explicit examples

It does..


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2015-06-02 00:02:34

GunnDawg
Member
Registered: 2015-04-14
Posts: 86

Re: [SOLVED] Removing leftover config files

I suppose I missed that part. Thanks. So I ran this "find / -regextype posix-extended -regex ".+\.pac(new|save|orig)" 2> /dev/null" and it only found the mirrorlist.pacnew. So from this I can assume there are no .pacsave files or left behind config files?

Offline

#7 2015-06-02 04:04:43

GunnDawg
Member
Registered: 2015-04-14
Posts: 86

Re: [SOLVED] Removing leftover config files

nevermind. Looks like pacdiff (as you mentioned) will do the job. Marked as solved. Thanks!

Offline

Board footer

Powered by FluxBB