Skip to content

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?

63 points

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.

30 points

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.

8 points

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.

3 points

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.

12 points

Nice, that's what I'm really missing... a way of adding a comment to packages, at installation time or later...

10 points

Both scenarios are supported:

  • paclabel -S pkg:label: during the installation.
  • paclabel -Ls pkg:label: after the installation.
11 points

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?

5 points

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.

4 points

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?"

3 points

Consider moving the DB to /var/lib/misc/, it's a more sensible location for this sort of thing.

2 points

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.

1 points

"the DB" is actually a text file as of now

Just call it Webscale® NoSQL® Document Database® and it's instantly 1000% fancies.

4 points

Very cool! I agree with the other poster that maybe trying to hack this into pacman directly would be cool.

2 points

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.

2 points
unknown author

Deleted before we saved it.

2 points

super cool & interesting concept!

be aware though that if you call it pacman and give it path precedence you'll break a lot of stuff that's parsing pacman -Q output

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.