Solved Dependencies related question

Hello everyone,

recently I've deleted certain packages which I no longer needed. Used the pkg remove $pkg command, which then listed the packages to be removed along with the chosen one. I press "OK" and they're deleted.

But then I do portmaster -a to update ports, and it insists on installing back those packages I deleted.

My question is, how can I determine which installed packages have these as dependencies? I understand, pkg(8) was supposed to tell me that when I was deleting them, but it didn't. Is there a way to check this? So far, with both portmaster and pkg there is only the option to silently check for dependencies. Is there a way to make them tell me about the results?
 
Hello,

I suggest you to have a look to man pkg-info and more particularly to the -d and -r and -k options. May be these commands are what you are looking for (Or I did not get your question).
 
Hello,

I suggest you to have a look to man pkg-info and more particularly to the -d and -r and -k options. May be these commands are what you are looking for (Or I did not get your question).
These commands I have seen and they don't solve the problem. However, I figured that these packages portmaster insists on installing along with the updates must be build-dependencies. In which case there's no way out of it.
 
pkg autoremove will remove any packages that aren't needed and pkg check -d will check the dependencies in packages you have installed. However, if as you've already mentioned some of the ports are build time requirements there is no way around it.
 
So far, with both portmaster and pkg there is only the option to silently check for dependencies. Is there a way to make them tell me about the results?
You can see the dependencies of desired ports: make all-depends-list (or make run-depends-list and make build-depends-list and make missing) - see ports().
 
You can see the dependencies of desired ports: make all-depends-list (or make run-depends-list and make build-depends-list and make missing) - see ports().
Thank you thank you, this hasn't been a problem, for there are numerous ways to see dependencies for any given port. My problem was to see about some totally unwanted packages being installed (well, like printing/texlive-base, which is as huge as it is useless for me), obviously as a dependency for some of the ones in line to be updated by portmaster -- but it won't tell me which one that is.

Well, I figured out already, that this can't be helped anyway. However, maybe it would be fair to tell which particular port needs these dependencies... just in case, you know.
 
Dear free-and-bsd,
as far as I know /usr/ports/INDEX-* holds a list of all dependencies. If /usr/ports/INDEX-10 applies for your system grep "texlive-base" INDEX-10 | sed -e 's/|.*//' should show you the packages which require printing/textlive-base. For the example above I have 153 hits. You can compare them with the ports you have installed, either by visual inspection or by redirection to files, sort and diff. I hope it helps:)!
 
Dear free-and-bsd,
as far as I know /usr/ports/INDEX-* holds a list of all dependencies. If /usr/ports/INDEX-10 applies for your system grep "texlive-base" INDEX-10 | sed -e 's/|.*//' should show you the packages which require printing/textlive-base. For the example above I have 153 hits. You can compare them with the ports you have installed, either by visual inspection or by redirection to files, sort and diff. I hope it helps:)!
Great, thank you VERY much. This isn't the first time I'm confronting this "problem" and the answer was by all means supposed to exist, or else it would have been a flaw in the FreeBSD ports system. So I'm gland, not so much for my own sake, as I am on behalf of FreeBSD and its all-winning ports system :) :). Will make it an interactive script and add to my .bashrc.

PS: so my guess was right and all this junk is build dependencies. Still, can't imagine why an application should need texlive-full to build!! Perhaps, uses a couple of files from the whole installation...

[SOLVED]
 
Back
Top