You are not logged in.
I did some cleaning up of unused software and noticed that i can not uninstall one package that is clearly installed:
% sudo pacman -Qi python2-pillow
[sudo] password for ju:
Name : python2-pillow6
Version : 6.2.1-1
…
Required By : calibre
Optional For : None
Conflicts With : python-imaging python2-imaging python2-pillow
Replaces : None
Installed Size : 2.95 MiB
Packager : Kyle Keen <keenerd@gmail.com>
Build Date : Mon Jun 15 17:18:16 2020
Install Date : Fri Jul 10 15:11:21 2020
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
% sudo pacman -Rcc python2-pillow
error: target not found: python2-pillow
Reinstalling works just fine.
Any ideas how this could happen?
Last edited by hakunamenta (2020-07-10 13:26:25)
Offline
Look at the "Name" field.
Online
huh thats intersting. i wonder why -Qi does that but -Rcc not.
Offline
python2-pillow6 provides 'python2-pillow', along with 'python2-imaging' and 'python-imaging'. Perhaps pacman also looks at 'provides' when you are doing a query operation.
EDIT: Out of curiosity I installed python2-pillow6 on my system, and now I can do this:
pacman -Qi python-imaging
Name : python2-pillow6
Version : 6.2.1-1
Description : Python Imaging Library (PIL) fork. Python2 version.
Architecture : x86_64
URL : https://python-pillow.github.io/
Licenses : BSD
Groups : None
Provides : python-imaging python2-imaging python2-pillow
Depends On : lcms2 libtiff openjpeg2 libimagequant python2
Optional Deps : freetype2: for the ImageFont module [installed]
libraqm: for complex text scripts [installed]
libwebp: for webp images [installed]
tk: for the ImageTK module [installed]
python2-olefile: OLE2 file support
python2-pyqt5: for the ImageQt module
Required By : None
Optional For : None
Conflicts With : python-imaging python2-imaging python2-pillow
Replaces : None
Installed Size : 2.95 MiB
Packager : Kyle Keen <keenerd@gmail.com>
Build Date : Mon Jun 15 17:18:16 2020
Install Date : Fri Jul 10 16:31:03 2020
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
So query operations with pacman definitely takes the 'Provides' field into consideration, which is actually quite logical since 'provides' means that pacman considers everything in that field as installed packages when checking if dependencies are met.
Last edited by Daerandin (2020-07-10 14:34:42)
Offline
Intersting, thanks for the research.
Offline