Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#43675 - [Pacman] Option to mark package as dep of another on the command-line.

Attached to Project: Pacman
Opened by bugmenot (bugmenot) - Monday, 02 February 2015, 16:36 GMT
Last edited by Allan McRae (Allan) - Friday, 13 May 2016, 23:09 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
It would be nice to have an option that would mark a package as a dependency of another one ("--asdepof=").

I believe it useful for installing an optional dependency as a dependency, to automatically remove it if the package that optdeps on it was removed).

This basically "shorcuts" the need to clean up (most) orphans.

It's currently possible to accomplish this by decompressing the package, modifying the depend line of .PKGINFO, recompressing and installing with pacman -U), and doing so on every update of the package.

If this request was unsuccesful, should I open another one to ask for pacman to output the installed and no longer needed optdeps, when removing a package ?

Thank you.
This task depends upon

Closed by  Allan McRae (Allan)
Friday, 13 May 2016, 23:09 GMT
Reason for closing:  Won't implement
Comment by Karol Błażewicz (karol) - Monday, 02 February 2015, 17:39 GMT
What about 'pacman -Qt' and friends?
Comment by Andrew Gregory (andrewgregory) - Monday, 02 February 2015, 17:49 GMT
pacman would also have to keep track of the user added dependencies in order to preserve them across updates. Your problem is already easily solved by creating a meta package that depends on both. If you don't feel like creating them by hand see https://github.com/andrewgregory/makepkg-meta

Loading...