You are not logged in.

#1 2008-07-24 20:43:07

B-Con
Member
From: USA
Registered: 2007-12-17
Posts: 554
Website

Changing pkgs from "installed as dependency" to "explicitly installed"

I just did a -Qdt to check for orphans -- its been a while since I've done so -- and apparently both I've failed to use -Rs religiously and some dependencies have changed, I had quite a few orphans, including some packages I knew I only had because of dependency issues.

Anyway, looking through the packages I found a few, like zip, that were labeled as "installed as dependency", which may be true but if so it is no longer a dependency for something I have. But I need zip so I'd like to change it to be "explicitly installed".

I just want to make sure: Changing the desc file in /var/lib/pacman/local/$PKGNAME and changing %REASON% from 1 to a 0, or just getting rid of %REASON%, is all I have to do to fix this, right?

Offline

#2 2008-07-24 20:55:23

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Changing pkgs from "installed as dependency" to "explicitly installed"

I generally don't suggest editing the DB by hand - have you just tried pacman -S zip?

Offline

#3 2008-07-24 21:26:45

B-Con
Member
From: USA
Registered: 2007-12-17
Posts: 554
Website

Re: Changing pkgs from "installed as dependency" to "explicitly installed"

Yeah, that was the first thing I tried. Explicitly sync'ing the package doesn't change its install status. It makes sense, otherwise you couldn't explicitly re-sync dependencies without messing up dependency-install info.

Offline

#4 2008-07-24 21:28:57

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Changing pkgs from "installed as dependency" to "explicitly installed"

I think you might need to first uninstall the package in question with -Rd and then install it again with -S.  Just reinstalling (without previously removing the package) doesn't change the "install reason", if I remember correctly.

Offline

#5 2008-07-24 22:05:18

B-Con
Member
From: USA
Registered: 2007-12-17
Posts: 554
Website

Re: Changing pkgs from "installed as dependency" to "explicitly installed"

Yeah, that fixed the problem. I'll just do that for all the packages.

Offline

Board footer

Powered by FluxBB