You are not logged in.

#1 2010-11-02 14:41:33

rkonrad
Member
Registered: 2010-08-22
Posts: 9

basic help - pacman-remove

Sorry if I'm missing the obvious - but I can't remove the latest python upgrade.  I want to remove, completely, Python3.  The command, I think, should be "pacman -R python-3.1.2-2-x86_64.pkg.tar.xz".  That is correct? That package is in /var/cache/pacman/pkg.  Pacman says it can't find the file.

Cheers

Richard

Offline

#2 2010-11-02 14:47:20

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: basic help - pacman-remove

No, it's just:

pacman -Rs python

The s option will remove unneeded dependencies (check the man page first).
One easy way to know is that the package name is the name up to the first space in the output of pacman -Q eg:

EDIT: see below in the thread.

 $pacman -Q | grep python
dbus-python 0.83.1-2
python 3.1.2-2
python2 2.7-2

Last edited by skanky (2010-11-02 20:23:34)


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#3 2010-11-02 14:56:46

rkonrad
Member
Registered: 2010-08-22
Posts: 9

Re: basic help - pacman-remove

Thanks.  I'm having a difficult trying to get tovid (dvd authoring etc) to work and since upgrading to python 3 it won't.  I've tried everything to indicate to tovid to point towards python 2 but to no avail.  I'd like to remove python 3 but keep dependencies intact.

Based on your message, so if I remove (-R) "python" I am only removing python 3?

Thanks

Offline

#4 2010-11-02 15:06:38

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: basic help - pacman-remove

Yes - though as I've not done it, I don't know for sure that there will be no side effects. You should be able to reinstall if there are any though.

You might find it better (esp. in the long run) to get tovid working with it on. I can't help, but a new thread on here about that may get some solutions. smile


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#5 2010-11-02 15:15:20

Emericn6k
Member
From: Toulouse
Registered: 2010-06-22
Posts: 13

Re: basic help - pacman-remove

I really doubt removing python (3) will solve the problem.
Python2 executable will still be "python2". If tovid searches for "python", nothing will work.
The problem is more likely that tovid exists only on AUR and AUR pkgbuild has not been updated to take python3 migration into account.

Also, having several versions of python installed at the same time shall not conflict (neither in Arch Linux, neither in any other distro, BTW).

To answer the first question, to remove a package cleanly, I advise : pacman -Rcsn xx
* c : remove packages that depend on it. In your case, you will be able to see all packages that simply would not work anymore if you had only "pacman -R xx"-ed
* s : remove unneeded deps afterwards to avoid orphans
* n : remove unneeded .pacsave files (if any)

Well. I think the best would be to take a look at the PKGBUILD (which I leave to tovid users).


"In a world without fences and walls, who needs Gates and Windows"

Offline

#6 2010-11-02 18:19:13

rkonrad
Member
Registered: 2010-08-22
Posts: 9

Re: basic help - pacman-remove

Thanks.  Actually, it seems none of the tovid releases have taken python 3 into account as I have tried to install them all (including svn)

Thanks for your help.

Offline

#7 2010-11-02 18:50:35

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: basic help - pacman-remove

Some programs need to be updated for python 2.7 as well (cheetah, for example). To be really sure if tovid would work with py 2.7, you could temporarily change the python symlink to point to python2.7. If this does not make it work, it is either uncompatible with py 2.7 or there are other issues.

Best to check with upstream (issue tracker): http://code.google.com/p/tovid/

Offline

#8 2010-11-02 18:59:45

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: basic help - pacman-remove

skanky wrote:
 $pacman -Q | grep python
dbus-python 0.83.1-2
python 3.1.2-2
python2 2.7-2

Why not pacman -Qs?


rkonrad wrote:

Thanks.  Actually, it seems none of the tovid releases have taken python 3 into account as I have tried to install them all (including svn)

Thanks for your help.

Just fix the PKGBUILD. It's easy. See http://allanmcrae.com/2010/10/big-pytho … rch-linux/ and http://www.archlinux.org/news/python-is-now-python-3/ for details on how to do it.

If you are lucky, you just have to change python setup.py to python2 setup.py, and change the dep.
If you are unlucky, you have to change the shebang in it's entry scripts by sed.

Last edited by Mr.Elendig (2010-11-02 19:04:26)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#9 2010-11-02 20:23:07

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: basic help - pacman-remove

Mr.Elendig wrote:
skanky wrote:
 $pacman -Q | grep python
dbus-python 0.83.1-2
python 3.1.2-2
python2 2.7-2

Why not pacman -Qs?

Because I keep forgetting about that option. Apologies all.

EDIT and that's one reason why - grep's quicker if it's installed, which it will be if uninstalling. smile

Last edited by skanky (2010-11-02 20:27:37)


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#10 2010-11-02 21:41:18

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: basic help - pacman-remove

ehmm... in your other thread, you posted that your tovid issues was solved - and that was 10 hours before you started this thread.

Did something happen since then?

Offline

Board footer

Powered by FluxBB