[SOLVED] Aptitude - add-user-tag question

Kernels & Hardware, configuring network, installing services

[SOLVED] Aptitude - add-user-tag question

Postby Shark » 2017-05-18 18:43

Hi,

For all years using Debian and Ubuntu i have always been using apt-get for package management. Yesterday i dived more into aptitude and found it much more powerfull and convinient.

I have one question regarding --add-user-tag. I want to achieve that all packages i manually install will have specific tag (for example "mi"). If the package is not installed i can add the tag via this command, for example:

Code: Select all
aptitude install vim --add-user-tag "mi" 


The problem is that i can not add the tag to packages already installed - i tried with install and reinstall command to no avail.

I searched the net and forums but didn't found the solution.

Anybody here have any idea?

Thank you!
Last edited by Shark on 2017-05-18 20:09, edited 1 time in total.
User avatar
Shark
 
Posts: 18
Joined: 2011-05-24 12:27

Re: Aptitude - add-user-tag question

Postby Dai_trying » 2017-05-18 19:33

Code: Select all
sudo aptitude add-user-tag tag package
Dai_trying
 
Posts: 332
Joined: 2016-01-07 12:25

[SOLVED]Re: Aptitude - add-user-tag question

Postby Shark » 2017-05-18 20:05

Thank you very much, that worked :)

i have always tried to do it like this:

aptitude --add-user-tag "mi" vim


but that never worked.
User avatar
Shark
 
Posts: 18
Joined: 2011-05-24 12:27

Re: [SOLVED] Aptitude - add-user-tag question

Postby Dai_trying » 2017-05-18 20:41

You're welcome :D
I don't use aptitude a lot, but it can be very useful sometimes.
Dai_trying
 
Posts: 332
Joined: 2016-01-07 12:25


Return to System configuration

Who is online

Users browsing this forum: Hip and 9 guests

fashionable