View previous topic :: View next topic |
Author |
Message |
entob Tux's lil' helper
Joined: 08 Jan 2004 Posts: 76 Location: Norway, Sandnes
|
Posted: Sun Feb 29, 2004 9:51 pm Post subject: How does Portage handle updates, USE-flags and dependencies? |
|
|
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?
|
|
Back to top |
|
|
superjaded l33t
Joined: 05 Jul 2002 Posts: 802
|
Posted: Sun Feb 29, 2004 9:56 pm Post subject: |
|
|
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 |
|
|
entob Tux's lil' helper
Joined: 08 Jan 2004 Posts: 76 Location: Norway, Sandnes
|
Posted: Sun Feb 29, 2004 10:04 pm Post subject: |
|
|
Is there a way of checking if this specific dependency is used by other programs? |
|
Back to top |
|
|
superjaded l33t
Joined: 05 Jul 2002 Posts: 802
|
Posted: Sun Feb 29, 2004 10:29 pm Post subject: |
|
|
try this commandline using qpkg from the gentoolkit ebuild:
Code: | qpkg -I -v -q <package> |
|
|
Back to top |
|
|
Given M. Sur l33t
Joined: 03 Feb 2004 Posts: 648 Location: No such file or directory
|
Posted: Sun Feb 29, 2004 10:40 pm Post subject: |
|
|
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! _________________ What is the best [insert-type-of-program-here]? |
|
Back to top |
|
|
|