Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Aptitude - add-user-tag question

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
User avatar
Shark
Posts: 18
Joined: 2011-05-24 12:27

[SOLVED] Aptitude - add-user-tag question

#1 Post by Shark »

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.

Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: Aptitude - add-user-tag question

#2 Post by Dai_trying »

Code: Select all

sudo aptitude add-user-tag tag package

User avatar
Shark
Posts: 18
Joined: 2011-05-24 12:27

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

#3 Post by Shark »

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.

Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

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

#4 Post by Dai_trying »

You're welcome :D
I don't use aptitude a lot, but it can be very useful sometimes.

Post Reply