You are not logged in.

#1 2008-10-23 08:02:18

jerryluc
Member
From: Norway
Registered: 2008-05-20
Posts: 95

change a package to become a dependency of another

i was wondering if i could change a package to be a dependency, Well, i know i could use abs to change PKGBUILD.

But yesterday gnome was upgraded on my machine, and i got an error with a package. I suspected it was because gnome was running, and was a little bit quick just to kill X and install the package explicit. Now i didn't get any error messages, but the package was no longer a dependency of gnome. Could i change that one package to become a dependency of gnome once again?

Offline

#2 2008-10-23 08:58:16

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: change a package to become a dependency of another

pacman -Rd ${PACKAGE} && pacman -S --asdeps ${PACKAGE}

Should work, I think


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#3 2008-10-23 18:20:57

jerryluc
Member
From: Norway
Registered: 2008-05-20
Posts: 95

Re: change a package to become a dependency of another

thanks, pacman <3

Offline

#4 2008-10-23 19:37:49

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: change a package to become a dependency of another

Just a language remark: the package would still be 'a dependency'; the thing that changes is that it's not marked as 'installed as a dependency'.

Offline

#5 2008-10-23 19:43:03

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: change a package to become a dependency of another

klixon's advice will mark the package as a dependency, but the only way to make it a dependency of gnome (so that it gets installed and uninstalled with it) would be to change the database desc file, which is really impractical. Without that, pacman will consider the package an orphan, so be careful when you clean out orphans.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#6 2008-10-23 22:39:42

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: change a package to become a dependency of another

Xyne wrote:

klixon's advice will mark the package as a dependency, but ...

As far as I understood the first three posts, that was exactly the point. That's why I posted the 'language remark', since I gathered that OP wanted to 'have the reason to be installed as a dependency' and not really change the dependency list of anything. But again, maybe I'm wrong.

Offline

#7 2008-10-23 22:50:38

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: change a package to become a dependency of another

bender02 wrote:

As far as I understood the first three posts, that was exactly the point. That's why I posted the 'language remark', since I gathered that OP wanted to 'have the reason to be installed as a dependency' and not really change the dependency list of anything. But again, maybe I'm wrong.

I interpreted the thread's title and the last line of his post to mean that he wanted it to be handled as if it were a true dependency of gnome (as he claims it used to be):

jerryluc wrote:

Could i change that one package to become a dependency of gnome once again?

Only the OP really knows what he wanted though (and maybe not even him, depending on how philosophical you want to get tongue ).


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB