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.
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.
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
Opened by bugmenot (bugmenot) - Monday, 02 February 2015, 16:36 GMT
Last edited by Allan McRae (Allan) - Friday, 13 May 2016, 23:09 GMT
|
DetailsDescription:
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
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