You are not logged in.

#1 2009-12-25 10:18:44

beroal
Member
From: Ukraine
Registered: 2009-06-07
Posts: 384
Website

[SOLVED] how to replace packages

When I change a version of some package, uninstalling an old version and installing a new version goes in one transaction. But if I want to replace a package (say P0) with a different package (say P1) (P1 provides the same names as P0), I need to uninstall P0, install P1, therefore I need to uninstall and install all packages which depend on names provided by P0 and P1. Can I uninstall P0 and install P1 in one transaction? I can't find it in "man pacman".

Last edited by beroal (2009-12-25 17:20:06)


we are not condemned to write ugly code

Offline

#2 2009-12-25 10:26:08

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,557

Re: [SOLVED] how to replace packages

in this case, you can use the -d flag (skip deps) so you don't have to uninstall/reinstall all the deps.

Offline

#3 2009-12-25 11:06:58

beroal
Member
From: Ukraine
Registered: 2009-06-07
Posts: 384
Website

Re: [SOLVED] how to replace packages

Thanks. And a related question: which command I can use to check that finally all dependencies are satisfied?

Update. I'm sorry, pacman actually supports replacing of packages with "-S", but not with "-U". I'm using "-U".

Last edited by beroal (2009-12-25 12:14:48)


we are not condemned to write ugly code

Offline

#4 2009-12-25 15:02:11

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] how to replace packages

beroal wrote:

Thanks. And a related question: which command I can use to check that finally all dependencies are satisfied?

run testdb

Update. I'm sorry, pacman actually supports replacing of packages with "-S", but not with "-U". I'm using "-U".

that will be available on the next version of pacman.


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2009-12-25 17:24:56

beroal
Member
From: Ukraine
Registered: 2009-06-07
Posts: 384
Website

Re: [SOLVED] how to replace packages

Thank you, I did not know about testdb!


we are not condemned to write ugly code

Offline

Board footer

Powered by FluxBB