You are not logged in.
Pages: 1
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
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
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
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.
"...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
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
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
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
$pacman -Q | grep python dbus-python 0.83.1-2 python 3.1.2-2 python2 2.7-2
Why not pacman -Qs?
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
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.
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
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
Pages: 1