You are not logged in.

#1 2016-05-01 12:41:13

no-cheating
Member
From: Poland
Registered: 2016-04-26
Posts: 61

[Solved] Managing temporary dependencies

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:

  1. I remember that Y is no longer needed and remove it myself

  2. 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

#2 2016-05-01 12:56:55

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: [Solved] Managing temporary dependencies

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

#3 2016-05-01 13:01:15

no-cheating
Member
From: Poland
Registered: 2016-04-26
Posts: 61

Re: [Solved] Managing temporary dependencies

That sounds reasonable. I'll learn how to create packages then. Thanks for the help!

Offline

#4 2016-05-01 13:02:50

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: [Solved] Managing temporary dependencies

No problem. Don't forget to mark this as solved then smile

Offline

Board footer

Powered by FluxBB