You are not logged in.

#1 2019-08-14 18:00:47

doblerone
Member
Registered: 2011-12-08
Posts: 215

[SOLVED] remove installed package not listed by pacman

I have jupyter installed on my system:

➜   ~ sudo find / -name "jupyter"
[sudo] password for david: 
/run/user/1000/jupyter
/home/david/.local/share/jupyter
/home/david/.local/etc/jupyter
/home/david/.local/bin/jupyter
/usr/bin/jupyter
/usr/share/jupyter

And I would like to get rid of it because I'm using now virtualenvs. It seems that pacman can't find it:

➜   ~ sudo pacman -R jupyter
error: can't find package: jupyter

How to remove it?

Thanks in advance.

Last edited by doblerone (2019-08-14 19:22:46)

Offline

#2 2019-08-14 18:04:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] remove installed package not listed by pacman

Pacman didn't install it, so why would it be tracking it? Unintstall it the same way you installed it.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2019-08-14 18:08:07

doblerone
Member
Registered: 2011-12-08
Posts: 215

Re: [SOLVED] remove installed package not listed by pacman

Thanks for the fast reply.

It's a community package, that's why I thought it was installed via pacman.

Offline

#4 2019-08-14 18:54:13

pdc
Member
Registered: 2015-05-30
Posts: 33

Re: [SOLVED] remove installed package not listed by pacman

Those files belong to other packages:

$ pkgfile /usr/bin/jupyter
community/python-jupyter_core
$ pkgfile -d /usr/share/jupyter/
community/jupyter-widgetsnbextension
community/jupyterlab
community/python-ipykernel
community/python2-ipykernel
community/sagemath-jupyter

Offline

#5 2019-08-14 19:00:42

doblerone
Member
Registered: 2011-12-08
Posts: 215

Re: [SOLVED] remove installed package not listed by pacman

pdc wrote:

Those files belong to other packages:

$ pkgfile /usr/bin/jupyter
community/python-jupyter_core
$ pkgfile -d /usr/share/jupyter/
community/jupyter-widgetsnbextension
community/jupyterlab
community/python-ipykernel
community/python2-ipykernel
community/sagemath-jupyter

I don't have any of those packages installed neither.

Offline

#6 2019-08-14 19:17:16

loqs
Member
Registered: 2014-03-06
Posts: 17,362

Re: [SOLVED] remove installed package not listed by pacman

pacman -Qo /usr/bin/jupyter

If pacman is not tracking the file because it did not install it,  pacman can not remove it.
See also Pacman#Querying_package_databases and Tips_and_tricks#Identify_files_not_owned_by_any_package
Edit:
Have you ever used pip install without --user or make install on the system?

Last edited by loqs (2019-08-14 19:25:10)

Offline

#7 2019-08-14 19:22:28

doblerone
Member
Registered: 2011-12-08
Posts: 215

Re: [SOLVED] remove installed package not listed by pacman

loqs wrote:
Pacman -Qo /usr/bin/jupyter

If pacman is not tracking the file because it did not install it,  pacman can not remove it.
See also Pacman#Querying_package_databases and Tips_and_tricks#Identify_files_not_owned_by_any_package
Edit:
Have you ever used pip install without --user or make install on the system?

Aha, there it is! Installation could have been done via pip!

I'll marked it as solved.

Offline

Board footer

Powered by FluxBB