Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How does Portage handle updates, USE-flags and dependencies?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
entob
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jan 2004
Posts: 76
Location: Norway, Sandnes

PostPosted: Sun Feb 29, 2004 9:51 pm    Post subject: How does Portage handle updates, USE-flags and dependencies? Reply with quote

I have a question on how Portage handles updates, USE-flags and dependencies.

1. I emerge a program with USE-flags that requires dependencies.
2. Later I wan't to update that program, but this time I have removed one USE-flag. Now one dependency is no longer is needed by the program.

Will Portage remove the no-longer-needed dependency and if so; will Portage still remove this dependency even if other programs use it?

:roll:
Back to top
View user's profile Send private message
superjaded
l33t
l33t


Joined: 05 Jul 2002
Posts: 802

PostPosted: Sun Feb 29, 2004 9:56 pm    Post subject: Reply with quote

Portage does not yet have any reverse dependancy checking, atleast none that is recommended to use.

Alternatively, you can do emerge -p depclean which basically unmerges all programs that are not found in the world file and are not dependancies on programs in the world file. However, I would REALLY be careful about using this because the one or two times I've run the thing, it caught quite a few false-positives.
Back to top
View user's profile Send private message
entob
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jan 2004
Posts: 76
Location: Norway, Sandnes

PostPosted: Sun Feb 29, 2004 10:04 pm    Post subject: Reply with quote

Is there a way of checking if this specific dependency is used by other programs?
Back to top
View user's profile Send private message
superjaded
l33t
l33t


Joined: 05 Jul 2002
Posts: 802

PostPosted: Sun Feb 29, 2004 10:29 pm    Post subject: Reply with quote

try this commandline using qpkg from the gentoolkit ebuild:
Code:
qpkg -I -v -q <package>
Back to top
View user's profile Send private message
Given M. Sur
l33t
l33t


Joined: 03 Feb 2004
Posts: 648
Location: No such file or directory

PostPosted: Sun Feb 29, 2004 10:40 pm    Post subject: Reply with quote

Code:
emerge -p depclean


Holy False Positives!!! I definately won't be doing that without the "-p"

Is portage ever expected to get reverse-dependency checking? Personally the lack of it is the only thing I don't like about Portage.

Regardless though, Portage still rocks! :D
_________________
What is the best [insert-type-of-program-here]?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum