Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg_pacman items do partial match when determining which packages are installed #688

Open
Kunsi opened this issue Nov 27, 2021 · 1 comment

Comments

@Kunsi
Copy link
Contributor

Kunsi commented Nov 27, 2021

✘ kunsi-t470  pacman  pkg_pacman:iptables  failed
│ installed  yes → no
╵
│
├─ pacman -Q iptables (return code: 0)
│ 
│ iptables-nft 1:1.8.7-1
│
├─ pacman --noconfirm -Rs iptables (return code: 1)
│ 
│ error: target not found: iptables
│
├─ pacman -Q iptables (return code: 0)
│ 
│ iptables-nft 1:1.8.7-1
╵
@Kunsi
Copy link
Contributor Author

Kunsi commented Dec 14, 2021

Maybe that's actually a feature of pacman, to show packages that 'provide' the corresponding package?

/home/kunsi➤ pacman -Qi iptables
Name            : iptables-nft
Version         : 1:1.8.7-1
Description     : Linux kernel packet control tool (using nft interface)
Architecture    : x86_64
URL             : https://www.netfilter.org/projects/iptables/index.html
Licenses        : GPL2
Groups          : None
Provides        : iptables  arptables  ebtables
Depends On      : libnftnl  libpcap  libnfnetlink  libnetfilter_conntrack  bash  nftables
Optional Deps   : None
Required By     : iproute2  systemd
Optional For    : libvirt
Conflicts With  : iptables  arptables  ebtables
Replaces        : None
Installed Size  : 2,41 MiB
Packager        : Antonio Rojas <[email protected]>
Build Date      : 2021-01-20T22:31:09 CET
Install Date    : 2021-06-03T13:49:57 CEST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

vain added a commit that referenced this issue Nov 10, 2023
When package A provides package B, the call "pacman -Q B" returns the
info of package A:

    $ pacman -Qi crda
    Name            : wireless-regdb
    ...
    Provides        : crda

This can create issues like #688: Users were unable to remove package B.

To solve this, have pkg_pacman look at the output of "pacman -Qq" and
search for exact matches.
@vain vain mentioned this issue Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant