Skip to content

Which feature do you want to land in pacman ?

Mine would be rootless package installation for that specific user.

30 points91 comments
Open on Reddit
About this post
Posted
Archived
Score
30 · 100% up
Kind
Text
ID
c58par

Author

25
posts
102
comments
3
media
View profile

93 comments

Delete all unneeded installed as dependencies packages in one pacman command, without piping a query into xargs or using substitution or whatever.

41 points

What about

pacman -Qqdt | pacman -Rs -

Does not use xargs or command subsitution.

And may I ask why? You can easily create an alias for that.

EDIT: made correction pointed out below.

7 points

That doesn't work, by the way - -R requires you to be root, and even if you are it still complains that no targets are specified. But yeah, the actual way to do it is still an one-liner that a user could remember if they would bother themselves with it, but still.

I find it the same level of minor inconvenience as with apt's thing where for a full system upgrade you have to write sudo apt-get update && sudo apt-get upgrade, opposed to sudo pacman -Syu.

It's just that with sudo apt-get autoremove, there's a little inconvenience both ways - you can't fully upgrade with a single apt-get invocation, and you can't fully remove oprhaned dependencies with a single pacman invocation.

Yeah, I agree, it's not very complicated to do yourself, but it's a common thing people would want to do, and therefore it maybe makes sense to make it into a real feature to be run in one command. I mean both apt's update&upgrade thing, and the pacman's removal operation performed on a result of substituting its arguments with pacman's query operation.

3 points

Why not? As simple as that may be, it's a nice convenience and the feature make sense. This is a dream thread, so might as well.

2 points

It feels like pacman -Rsu SHOULD accomplish this, but it doesn't. Can anyone eli5 why pacman -Qdt returns packages not picked up by the u flag with -R?

1 points

pacman -R always applies to a set of packages from the command line, if you run just pacman -Rsu you get error: no targets specified.

On the other hand, pacman -Qdt (like other -Q options) considers all installed packages, so it will usually find more dangling dependencies that pacman -Rs <package>

Based on my reading of the manpage, the u flag of -R seems to mean "remove all these packages (specified on the command line) unless they're required by something else," rather than "remove all unneeded packages."

5 points
unknown author

Deleted before we saved it.

1 points
unknown author1 hidden

More than 4 monsters in the game, I mean come on Namco, it's 2019

30 points

Install reason. I need a way to store why I explicitly installed a package. It helps when I'm cleaning up unused packages.

20 points

sounds usefull but you can always just create shell function that gets extra argument, writes it to a file and runs pacman as usual right?

1 points

With that attitude you can just write yourself a shell script that queries pacman's database of installed packages and get rid of all the unnecessary bloat know as the -Q option lol

2 points

I don't know if it already exists, but being able to rollback every updated package to the version installed at a specified, previous date would be nice.

Basically go back to a previous state.

19 points

man 5 alpm-hooks; pacman -Qi > /var/log/pacman.pkglist."$(date --iso-8601)"; or use a Snapshot manager (for zfs and btrfs).

Might want to check that it's really -Qi though, I'm doing that from memory

3 points

There is the AUR package downgrade that works nicely, but it isn't quite what you want.

1 points

Handling modules for the currently running kernel on updates.

8 points

I think pacman's VerbosePkgLists output could be improved a bit. Yay, if used with the combinedupgrade option (disabled by default due to possible partial upgrades), has an output format which makes it much easier to read and compare, like for example the colored parts of the semantic versioning strings or packages being sorted by repo and name (example pic from the readme of yay's git repo).

8 points

Warn on install of any package containing arbitrary keyword, definable in pacman.conf. I'm trying to stay as xorg free as possible.

8 points

I'm sad there is little mention of features I want to see implemented! Maybe my vision for pacman is wrong...

  • Parallelism: some things in pacman can use multiple processors to boost speed (e.g. checksum/signature checks). Parallel downloads could also be an option - although that requires a lot of interface considerations.

  • Alternatives: I'd like to be able to switch /usr/bin/python to point at python2 or python3. Not sure what idiot decided to make that python3 in Arch... :)

  • Better handling of optdepends. I think more can be done, but needs planning.

  • More extensible makepkg. There is great progress made on that, and I have the start of a namcap replacement as drop-ins into makepkg. But more can be done.

But mostly I think time needs spent polishing what we already have. There are tiny annoyances that take time to fix, but give little reward. I'd love to freeze all development apart from those things.

6 points

I'd be happy to work on parallel checksumming if you're open to contributors. Never worked on pacman before though if you can offer any direction.

1 points
  • Parallel processing/pipelining (already start installing packages whose upgradable dependencies and dependants have already been downloaded while downloading the rest)
  • Use of ZSTD if packages have to be compressed in userspace (it's way better than XZ in ever metric except for peak compression ratio by a few percent (I don't think Arch even uses that high of an XZ compression level), though afaik we might already see this coming in september)
  • yay's UI (package search & install with pacman <search term> and the --combinedupgrade screen for example)
  • Integration of next-gen filesystem featues:
    • Fs compression on the pkgcache dir instead of having pkg files be compressed in userspace (.pkg**.xz**)
    • Cached packages as directories instead of tarballs (again, compressed by the fs)
      • Installation of packages cached as directories via reflink copy (very fast and would make the cache of every installed package basically free)
      • Delta upgrades via reflink copies + rsync and/or incremental send streams
  • Delta upgrades (again) (It was very slow when I used it while deltup was still a thing in pacman but it still did cut total download size immensely for many packages which might be very important to some users. Pipelining would also be a huge help here, it could maybe even make this feature beneficial to speed on good connections)
6 points

Parallel processing/pipelining (already start installing packages whose upgradable dependencies and dependants have already been downloaded while downloading the rest)

That is complexity for no real reason. Even upgrading several GB of packages happens in very little time once they are downloaded.

Use of ZSTD if packages have to be compressed in userspace

It will likely happen once I make a new pacman release...

Deltas are gone completely the next release.

3 points
  • Fs compression on the pkgcache dir instead of having pkg files be compressed in userspace (.pkg.xz)

Package compression will still be needed for transit, and it would be wasteful to decompress them for local storage, only to then transparently compress them again of file system level. I don't think this would improve the current situation.

1 points

Tagging / labeling packages when I install or remove them. So for instance when installing my GUI, I could tag all the packages I install as 'gui', then if I want to remove my GUI packages, instead of uninstalling each package or package group individually, I can just say pacman -R <tag gui> or whatever.

6 points

+1 Tagging packages, even if initially with an "info only" field, would be useful for helping keep track of say, AUR build deps, and other AUR related stuff.

Would be even cooler if makepkg could pass the "identification tagging" option to pacman when used with the -s and -i options.

I like to keep my AUR packages updated, and removing AUR build deps (orphans) doesn't always make sense if it's a huge download for every update.

It often takes some time for me to remember the build options for newly installed AUR packages. I often end up deleting them a few times ....

I have a script that uses aurora-git and aurutils, to list all the "build depends" of all my installed AUR packages combined, and separates them in "installed" and "need installed" columns.

Realize building in a clean chroot is trivial with aurutils, and would alleviate all this, but for just a small handful of AUR packages, almost seems overkill.

1 points

a reset feature, where a pkg don't creates pacnew files (or other stuff), but deletes, overwrites/recreates the original package content like its a fresh installation.

5 points

I'd like to see colorful version differences with package updates, similar to what yaourt and yay can do.

3 points

zstd, but that's it.

(Yes I know it already does, but until the repos are packaged that way, what's the point! :D )

2 points

I just want a new release so all the new stuff in master actually makes it to the mainstream.

1 points

What kind of stuff is there?

2 points

For my personal changes. A rework of how to use pacman -F, better handling of --needed with group installs, a ton of new lints for makepkg and alpm_pkg_(make|check)_depends actually working.

There's also meson which is nice but doesn't really effect the built package.

There's also the slight annoyance of having to maintain separate release and pacman-master branches of yay, go-alpm and alpm.rs.

1 points

Automatically add assume installed option to font packages, since I want to install the font myself.

1 points

Create a dummy package

2 points

Pacman already has feature for that, but i just want it to run automatically. The switch is super long.

Edit: A short switch for --assume-installed would be nice, really useful feature.

1 points

Built-in delta updates.

Rootless per-user packages don't really make sense; each and every package would have to be re-architectured for it.

1 points

pacman has delta updates... although that feature is removed in the next release...

2 points
unknown author

Deleted before we saved it.

1 points
unknown author

Deleted before we saved it.

1 points

Super minor, but it'd be neat if -v also included output currently only supplied by VerbosePkgLists in /etc/pacman.conf

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.