This is an interesting concept. I think I like it.
Have you considered hacking this functionality into pacman itself? Seems like an arbitrary comment field might be something that could be saved with the local db.
In my opinion it would be more useful to have the comments/labels/whatever be version specific, or to specific installations of that package even. Like if I rebuild an official package with a patch I need, the version won't change but it would be helpful to remind me of what I did.
Maybe they could be made to have different lifetimes? e.g. persistent/version/install?
It would be actually much better to store such things in the DB instead of this hack. Though I can't tell I do actually know how to achieve it.
Version-specific labels don't seem hard to implement, I'll look into it. Installation-specific labels are more complex, I don't think I can achieve it without a major refactoring of the current code.
I started doing a similar thing in my free time, tagging packages (console or Graphical, gtk or qt, etc), then I realised that this is a data problem.
It would be nice if there was a system so people could contribute labeling packages. What I would be happy to do, because I too find the package descriptions lacking.
I wouldn't mind this being portable ~ you could attach labels to packages, and then where you go to install on a new machine, said labels can remind you of why you want certain packages.
Nice, I've wanted to have exactly this. I always think I'll remember why I installed something, but occasionally it's some kind of indirect dependency and I forget.
Thank you! I've been wanting something like this to tag build dependencies of AUR packages for a while but never felt I had the scripting chops to make it. Speaking of which, is this compatible with AUR helpers such as yay?
paclabel currently uses pacman as the backend, but it would be nice to provide an option to change the backend to something like yay. A PR would be nice because I have no experience with any AUR helpers.
Dude/Dudette this is a fantastic idea. This is one of those ideas where I think most people will say "Oh yeh of course! How did we not think of this before?"
This is one of those features which are really nice but I'd definitely just forget to use in general.
It'd be perfect if you could have labels that ask for extra confirmation when removing (or otherwise altering) certain packages!
I guess you could do this by making a meta-package that just depends every package you want to protect, but doing it like that you'd have to edit and rebuild that package every time you wanted to add something, which is both unwieldy and counter-intuitive.
34 comments
This is an interesting concept. I think I like it.
Have you considered hacking this functionality into pacman itself? Seems like an arbitrary comment field might be something that could be saved with the local db.
In my opinion it would be more useful to have the comments/labels/whatever be version specific, or to specific installations of that package even. Like if I rebuild an official package with a patch I need, the version won't change but it would be helpful to remind me of what I did.
Maybe they could be made to have different lifetimes? e.g. persistent/version/install?
It would be actually much better to store such things in the DB instead of this hack. Though I can't tell I do actually know how to achieve it.
Version-specific labels don't seem hard to implement, I'll look into it. Installation-specific labels are more complex, I don't think I can achieve it without a major refactoring of the current code.
PRs and issues in the GitHub repo are welcome.
I started doing a similar thing in my free time, tagging packages (console or Graphical, gtk or qt, etc), then I realised that this is a data problem.
It would be nice if there was a system so people could contribute labeling packages. What I would be happy to do, because I too find the package descriptions lacking.
I wouldn't mind this being portable ~ you could attach labels to packages, and then where you go to install on a new machine, said labels can remind you of why you want certain packages.
If
paclabelswitches to DB, import from/export to a text file will be the first thing to implement.A man of culture I see
Hmmmmmmm
https://github.com/Kharacternyk/paclabel
It's in AUR in case someone as crazy as me actually wants to attach labels to packages.
nah this is a really great idea, I know we have groups but having more dynamics tags could be really useful
```
paclabel -Ls paclabel:bloat
```
I joke, this is pretty awesome. Thanks for sharing.
Happy cake day!
I fucking hate that reddit markdown is inconsistent so I see your ` fencing rather than a code block.
Nice, I've wanted to have exactly this. I always think I'll remember why I installed something, but occasionally it's some kind of indirect dependency and I forget.
Nice, that's what I'm really missing... a way of adding a comment to packages, at installation time or later...
Both scenarios are supported:
paclabel -S pkg:label: during the installation.paclabel -Ls pkg:label: after the installation.Thank you! I've been wanting something like this to tag build dependencies of AUR packages for a while but never felt I had the scripting chops to make it. Speaking of which, is this compatible with AUR helpers such as
yay?paclabelcurrently usespacmanas the backend, but it would be nice to provide an option to change the backend to something likeyay. A PR would be nice because I have no experience with any AUR helpers.TIL KDE Filelight exists
Thank you!
Dude/Dudette this is a fantastic idea. This is one of those ideas where I think most people will say "Oh yeh of course! How did we not think of this before?"
Grub DO NOT REMOVE
Well you tell me that now...
Consider moving the DB to
/var/lib/misc/, it's a more sensible location for this sort of thing.This is a good option. Btw, "the DB" is actually a text file as of now. Slow as heck but I like that I can edit the labels with Vim.
Just call it Webscale® NoSQL® Document Database® and it's instantly 1000% fancies.
Installed gvim to get integration. Me too...
Very cool! I agree with the other poster that maybe trying to hack this into pacman directly would be cool.
This is one of those features which are really nice but I'd definitely just forget to use in general.
It'd be perfect if you could have labels that ask for extra confirmation when removing (or otherwise altering) certain packages!
I guess you could do this by making a meta-package that just depends every package you want to protect, but doing it like that you'd have to edit and rebuild that package every time you wanted to add something, which is both unwieldy and counter-intuitive.
Deleted before we saved it.
super cool & interesting concept!
be aware though that if you call it
pacmanand give it path precedence you'll break a lot of stuff that's parsing pacman -Q outputpaclabelrespects the-quite flag. I suppose that everything that parses the output should pass this flag.No, not everything does