You are not logged in.
Pages: 1
Let's say I have a situation where I'm manually building some application X and then use it for a month. To run X requires library Y, which happens to be in the official repositories, so I install it with pacman. After a month I remove X from my system. Now either:
I remember that Y is no longer needed and remove it myself
I forget to do so and will have Y left unused in my system.
Situation 2 is likely to happen and I would like to prevent it. What are the measures that I can take so that I'll be able to clean it up (ideally remove all such unneeded packages from time to time)? How are you handling such situations?
I know that I can mark installed package as dependency (pacman -S --asdeps package_name). I guess listing orphans (pacman -Qdt) would print that package, right? What if I'd like to somehow annotate what was the package needed for (I'm likely to forget that Y was installed to satisfy X and so won't be exactly sure if I can remove Y or not).
Last edited by no-cheating (2016-05-01 13:05:03)
Offline
You shouldn't build software manually without a pkgbuild if you want to install it on your system. Writing one yourself is quite easy and if you know how to build the software, you should be able to package it.
But if you really want to keep on building manually, there are other ways to handle this:
- A dummy package with the dependencies for your manually installed software, where you can list them as optional with an annotation if you so like
- Keep a list with dependencies for your manually installed package and revisit that once in a while for a cleanup.
But really, just package the software. In many cases, it's just a few lines.
Last edited by runical (2016-05-01 12:58:09)
Offline
That sounds reasonable. I'll learn how to create packages then. Thanks for the help!
Offline
No problem. Don't forget to mark this as solved then ![]()
Offline
Pages: 1