You are not logged in.

#1 2022-09-23 06:48:41

raninepaths
Member
Registered: 2022-09-23
Posts: 2

How to completely remove Chaotic-AUR repository?

Hello, I wish to completely remove Chaotic-AUR repository from my computer.
When installing I ran following commands :-

pacman-key --recv-key FBA220DFC880C036 --keyserver keyserver.ubuntu.com
pacman-key --lsign-key FBA220DFC880C036
pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst' 

And then edited /etc/pacman.conf and added the following:-

[chaotic-aur]
Include = /etc/pacman.d/chaotic-mirrorlist 

From the commands above I conclude that to remove Chaotic-AUR repository completely , I have to remove packages chaotic-keyring and chaotic-mirrorlist. I have already saved list of packages installed from chaotic aur. Then run the following command for removing key ID:-

pacman-key --delete FBA220DFC880C036

And remove the changes I made to pacman.conf.
Should I remove all keys from pacman keys and re-initialize them for cleaning the unnecessary keys by :-

mv /etc/pacman.d/gnupg /root/pacman-key.bak
pacman-key --init
pacman-key --populate

Are there any other leftover ?
Am I correctly removing the unnessary keys added during Chaotic-AUR repository?
Should I take any other action?

Offline

#2 2022-09-23 09:16:22

cloverskull
Member
Registered: 2018-09-30
Posts: 172

Re: How to completely remove Chaotic-AUR repository?

You should be in good shape, however did you install anything using that repository?

Honestly I wouldn't worry about removing the keys or anything. Simply commenting out the chaotic-aur lines in your pacman.conf should be sufficient.

Offline

#3 2022-09-23 09:33:36

raninepaths
Member
Registered: 2022-09-23
Posts: 2

Re: How to completely remove Chaotic-AUR repository?

cloverskull wrote:

You should be in good shape, however did you install anything using that repository?

Honestly I wouldn't worry about removing the keys or anything. Simply commenting out the chaotic-aur lines in your pacman.conf should be sufficient.

As I have mentioned in the post that I have already saved list of packages installed from chaotic aur. And I will install them by myself later.

Offline

#4 2022-09-24 12:37:56

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: How to completely remove Chaotic-AUR repository?

Is chaotic-aur listed in your pacman.conf above other repos that (may) have packages with the same name ?

If yes, consider running pacman -Syuu once after the removal.

Last edited by Lone_Wolf (2022-09-24 12:38:40)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2022-09-24 18:42:24

sekret
Member
Registered: 2013-07-22
Posts: 283

Re: How to completely remove Chaotic-AUR repository?

You might also run

pacman -Sc

to remove packages that aren't installed on the one hand and leftover repository data on the other hand. I guess in your case the latter can also be done with

rm -rf /var/lib/pacman/sync/chaotic-aur*

Last edited by sekret (2022-09-24 18:43:51)

Offline

Board footer

Powered by FluxBB