You are not logged in.
Pages: 1
Hi,
I would like to be able to annotate packages that I install so I can remember why I installed the later. For example; let say im working on a QT project and have to install a bunch of dependence to build. Lets say I annotate those packages "QTproject" After I'm done with the project I would like to easly clean up and uninstall all the packages with the tag "QTproject". Is this possible some how?
Thanks
Offline
From what I know, that is not possible using pacman, but an easy way to do it is to keep track of the packages using plain text files which act as tags, for example:
# saving packages list to a file
echo "dependecy1 dependency2 dependency3" > ~/QTproject.pkgs
# installing packages "tagged" as QTproject
cat ~/QTproject.pkgs | pacman -Syu -
# removing packages "tagged" as QTproject and their dependencies
cat ~/QTproject.pkgs | pacman -Rns -
Offline
Thanks mauritiusdadd,
That works but it would be really nice if the tag info could be stored in pacman's db. That way I don't have to worry about cleaning up old files, ect. I havn't looked into it yet but if it is using leveldb or sqlight it shouldn't be hard to write a script to do this.
Offline
Make a feature request against pacman if you think this would be a useful feature
On the other hand, a way to do it is to create a dummy package for projects and add the packages you need for that as a dependency. If by install reason you mean installing optdepends of other packages and having to manage them, Xyne made a nice script that can add dependencies to existing packages: https://aur.archlinux.org/packages/makedep/
Offline
Offline
Pages: 1