You are not logged in.

#1 2013-07-18 11:34:00

caneta
Member
From: Bologna, Italy
Registered: 2013-02-18
Posts: 7

[Solved] Yaourt won't remove a package already installed

I do not understand why I get the following:

[meeo@archasus ~]$ sudo yaourt -Ss python2-amqp
aur/python2-amqp 1.0.11-1 (Out of Date) (3)
    Low-level AMQP client for Python (fork of amqplib)

[meeo@archasus ~]$ sudo yaourt -R python2-amqp
error: target not found: python2-amqp

Is there a way to solve it?
Thanks in advance.

Last edited by caneta (2013-07-18 12:14:38)

Offline

#2 2013-07-18 11:38:26

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,033

Re: [Solved] Yaourt won't remove a package already installed

Hi and welcome to the forums. I'm sorry to see that you're having trouble. Please note that yaourt is an unofficial package and is not supported. It is certainly not required to remove packages. Verify that the package is actually installed via "pacman -Qs python2-amqp" (not "-Ss"; see the pacman man page for more information). If it is installed, do "sudo pacman -R python2-amqp".

Offline

#3 2013-07-18 11:39:25

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 1,175

Re: [Solved] Yaourt won't remove a package already installed

Are you sure it is installed? In that case the output of yaourt -Ss would say "[installed]"

Offline

#4 2013-07-18 11:41:13

opt1mus
Member
From: UK
Registered: 2011-12-31
Posts: 197
Website

Re: [Solved] Yaourt won't remove a package already installed

It's been a long time since I'd used yaourt, but from what I recall; you should not be using sudo yaourt foo bar as it should ask for elevated permissions when it needs it.

Offline

#5 2013-07-18 11:48:46

caneta
Member
From: Bologna, Italy
Registered: 2013-02-18
Posts: 7

Re: [Solved] Yaourt won't remove a package already installed

[meeo@archasus ~]$ pacman -Qs python2-amqp
[meeo@archasus ~]$ sudo pacman -R python2-amqp
[sudo] password for meeo: 
error: target not found: python2-amqp
[meeo@archasus ~]$

I think I made some mess with yaourt and pip2, because this package is installable also with pip2 (with a more recent version):

[meeo@archasus ~]$ sudo pip2 list -o
amqp (Current: 1.0.12 Latest: 1.2.0)
[meeo@archasus ~]$ sudo pip2 install --upgrade amqp==1.2.0
Downloading/unpacking amqp==1.2.0
  Running setup.py egg_info for package amqp
    
  Requested amqp==1.2.0, but installing version 1.0.12
Installing collected packages: amqp
  Found existing installation: amqp 1.0.12
    Uninstalling amqp:
      Successfully uninstalled amqp
  Running setup.py install for amqp
    
Successfully installed amqp
Cleaning up...
[meeo@archasus ~]$ sudo pip2 list
...
amqp (1.0.12)

But in this situation I cannot get the latest 1.2.0 amqp release... is there a way to solve this?

Offline

#6 2013-07-18 12:14:22

caneta
Member
From: Bologna, Italy
Registered: 2013-02-18
Posts: 7

Re: [Solved] Yaourt won't remove a package already installed

Ok, solved: Yaourt doesn't find the package because it was not installed.
The "Out of date" message made me think that it was installed but to be upgraded: this is not true.
"Out of date" means that this package in the AUR is not the latest version available.

I solved cleaning the /tmp directory, where pip puts its stuff during installations.
Then I was able to install the latest amqp-1.2.0:

[meeo@archasus ~]$ sudo rm -fr /tmp/*
[meeo@archasus ~]$ sudo pip2 install amqp
...
[meeo@archasus ~]$ pip2 list
amqp (1.2.0)
...

Thank you so much for the quickness of your answers!

Last edited by caneta (2013-07-18 12:15:10)

Offline

#7 2013-07-18 12:15:59

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,033

Re: [Solved] Yaourt won't remove a package already installed

The package is not installed on your system via Pacman. If it were, the "-Qs" command would show it.

I don't know how to sove the problem with pip2. With makepkg and by modifying the PKGBUILD found in the AUR, it should be easy to install the latest version.

Offline

#8 2013-07-18 12:17:40

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,033

Re: [Solved] Yaourt won't remove a package already installed

I'm glad you solved it. I would recommend, whenever possible, to install packages via Pacman/makepkg, rather than with language specific tools like easy_install/pip or whatever the Ruby gems command is. If there is a PKGBUILD available for it in the AUR, it's much more preferable to let Pacman keep track of it for you, to more conveniently handle installation, upgrades and removal.

Offline

#9 2013-07-18 12:22:10

caneta
Member
From: Bologna, Italy
Registered: 2013-02-18
Posts: 7

Re: [Solved] Yaourt won't remove a package already installed

I know jakobcreutzfeldt, I would like to use only pacman indeed.
But some package is present only inside AUR and so I use from time to time yaourt.
And for python packages, the are upgraded so frequently that a lot of them are not aligned with the latest release...

Offline

#10 2013-07-18 12:38:01

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,033

Re: [Solved] Yaourt won't remove a package already installed

That's the problem with using yaourt: by treating the AUR as an actual repository, you are falsely dependent on the PKGBUILD maintainer for staying up-to-date. If you did things the manual way with makepkg, you can just update it yourself the moment a new version comes out. It's extremely simple to do.

Offline

#11 2013-07-18 12:45:57

caneta
Member
From: Bologna, Italy
Registered: 2013-02-18
Posts: 7

Re: [Solved] Yaourt won't remove a package already installed

Ok, I'm going deeper into this, thanks for your advice!

Offline

#12 2013-07-18 18:09:19

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,791
Website

Re: [Solved] Yaourt won't remove a package already installed

Moving to AUR Issues...


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Online

Board footer

Powered by FluxBB