Hi,
I feel like I've searched all over for a good answer to this, but not found one. I'm looking for the best practice for removing a port and all it depends on. The only tool I know that does this is nonstandard - portupgrade. It's '-r' option is downward recursive: remove pkg x and all packages it depends on (iirc, only if they are not depended on by something else).
pkg_delete's -r option only deletes package x and all packages that depend on it. Maybe other users' opinions will differ here, but I never really remove ports from the bottom down... I remove them how I install them - TOP to bottom.
In other words, I'm looking for a way to remove a port and every dependency that was installed with it JUST how I installed it.
I also have not found a good solution for figuring out what packages are unneeded anymore. People refer to pkg_cutleaves and in the same sentence say it can really be detrimental and not a very good tool. I know I can use portmaster -l and try to figure out which ports aren't depended on and don't depend on anything - is that the best way?
Are there any homebrewed scripts that search depends lists? I am fairly new and don't know how to utilize the full extent of the ports to use their own tools to do what I want - e.g. using the depends lists of the ports themselves to tell me something.
So, I guess there's two questions in one post here, both related to ports management:
- What do I do when I want to remove a package and all that it depends on. Best ports practice? I also would prefer to stick with portmaster vs. the portinstall toolset.
- What is the best way to remove ports that aren't depended on anymore and that you really don't need? Stale ports I suppose... Is portmaster -s the best way or are there other ways?
Any other tips used by those in these forums would be greatly appreciated. The Handbook and these forums have been helpful to an extent, but I feel that I'm still always left unsatisfied with the tools available, maybe because I don't know how to use them properly!
Thanks,
John
I feel like I've searched all over for a good answer to this, but not found one. I'm looking for the best practice for removing a port and all it depends on. The only tool I know that does this is nonstandard - portupgrade. It's '-r' option is downward recursive: remove pkg x and all packages it depends on (iirc, only if they are not depended on by something else).
pkg_delete's -r option only deletes package x and all packages that depend on it. Maybe other users' opinions will differ here, but I never really remove ports from the bottom down... I remove them how I install them - TOP to bottom.
In other words, I'm looking for a way to remove a port and every dependency that was installed with it JUST how I installed it.
I also have not found a good solution for figuring out what packages are unneeded anymore. People refer to pkg_cutleaves and in the same sentence say it can really be detrimental and not a very good tool. I know I can use portmaster -l and try to figure out which ports aren't depended on and don't depend on anything - is that the best way?
Are there any homebrewed scripts that search depends lists? I am fairly new and don't know how to utilize the full extent of the ports to use their own tools to do what I want - e.g. using the depends lists of the ports themselves to tell me something.
So, I guess there's two questions in one post here, both related to ports management:
- What do I do when I want to remove a package and all that it depends on. Best ports practice? I also would prefer to stick with portmaster vs. the portinstall toolset.
- What is the best way to remove ports that aren't depended on anymore and that you really don't need? Stale ports I suppose... Is portmaster -s the best way or are there other ways?
Any other tips used by those in these forums would be greatly appreciated. The Handbook and these forums have been helpful to an extent, but I feel that I'm still always left unsatisfied with the tools available, maybe because I don't know how to use them properly!
Thanks,
John