Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: How to delete package not installed by pacman (Read 303 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How to delete package not installed by pacman

This might not be the best forum to post this but... i don't know of a better one.  When i do (because paru is currently broken because of libalpm issues):

Code: [Select]
~/.paru-git/src/paru/target/release/paru
:: Synchronizing package databases...
 system is up to date
 world is up to date
 galaxy is up to date
 extra                          7.4 MiB  3.38 MiB/s 00:02 [###############################] 100%
 community is up to date
 universe is up to date
:: Starting full system upgrade...
warning: firefox: ignoring package upgrade (116.0.2-1 => 130.0-1)
warning: linux: ignoring package upgrade (6.5.5.artix1-1 => 6.10.10.artix1-1)
warning: linux-headers: ignoring package upgrade (6.5.5.artix1-1 => 6.10.10.artix1-1)
 there is nothing to do
:: Looking for PKGBUILD upgrades...
:: Looking for AUR upgrades...
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...
:: packages not in the AUR: ipw2100-fw  ipw2200-fw  keylaunch  ruby-arrayfields  ruby-braid 
    ruby-fattr  ruby-main  ruby-map
:: marked out of date: rbenv

Repo Make (4) compiler-rt-18.1.8-1  clang-18.1.8-2  spdlog-1.14.1-3  doxygen-1.12.0-2
Aur (3) libmp3splt-0.9.2-7  mp3splt-2.6.2-4  mp3wrap-0.5-7

:: Proceed to review? [Y/n]:

After "Repo Make" clang-18.1.8-2 is listed.  I installed this (don't remember how) a "long" time ago and want to get rid of it.  But nothing i try *finds* the package:

Code: [Select]
~/.paru-git/src/paru/target/release/paru -R clang
error: target not found: clang
lap76:[craig]:~/.paru-git/src/paru/target/release$ ~/.paru-git/src/paru/target/release/paru -R clang-18.1.8
error: target not found: clang-18.1.8
~/.paru-git/src/paru/target/release/paru -R clang-18.1.8-2
error: target not found: clang-18.1.8-2

Any ideas?

Re: How to delete package not installed by pacman

Reply #1
I let it reinstall clang and then i can delete it:

Code: [Select]
~/.paru-git/src/paru/target/release/paru -R clang
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing clang breaks dependency 'clang' required by doxygen

 

Re: How to delete package not installed by pacman

Reply #2
paru-git works according to the paru AUR page, you can use that for now too if you don't want to wait for the fix to make it into the paru stable release:
Code: [Select]
$ cd /tmp
$ git clone https://aur.archlinux.org/paru-git.git
$ cd paru-git/
$ makepkg -si

Although looking more carefully above, perhaps you did install paru-git and then it didn't find the records of regular paru. This is an internal paru design thing which I don't know about, but at a guess you might have a .cache/paru and .cache/paru-git directory now, or something like that.