Bug 692780

Summary: please add yum history tag option
Product: [Fedora] Fedora Reporter: Tomas Dabašinskas <tdabasin>
Component: yumAssignee: Seth Vidal <skvidal>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ffesti, james.antill, maxamillion, pmatilai, tla
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-28 20:42:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tomas Dabašinskas 2011-04-01 06:29:32 UTC
Description of problem:
Feature request

Hi, it would be really nice if there was a way of tagging yum history entries with information that is meaningful to the user for example:

# yum history tag 5 "Installed vlc player"

So that when yum histry tag is called it would generate similar output as yum history, but include ID, Tagstring, Actions, Altered

Also it would be nice to see all yum history not just last 20 entries perhaps with yum history --all?

Comment 1 James Antill 2011-04-01 14:13:25 UTC
"yum history list all"

The tag option is interesting, but it seems a bit weird to have it be added afterwards. In theory we can also work things like "installed vlc player" given the command line and yumdb.reason. Can you list some other messages you'd want to tag transactions with?

Comment 2 Tomas Dabašinskas 2011-04-05 06:08:33 UTC
Thanks for yum history list all, yeah adding tag after installing something is a bit weird, but it's better than nothing (: I mean it would really be useful when testing something. For example when packages are installed with yum install packageset1* packageset2* I'd go and tag saying yum history 10 tag "testing apps" I can then go and undo that whole thing a week later or something

Comment 3 Tomas Dabašinskas 2011-04-13 22:23:48 UTC
I think I got round to getting the info I need from yum history sqlite db, table "trans_cmdline", column "cmdline":
sqlite> select * from trans_cmdline;
5|install openoffice.org-writer
6|install subversion
7|install python-tools
8|install liveusb-creator
9|install ftp
10|install openoffice.org-calc
...

imho on single administrator system like fedora, "cmdline" output is more useful in "yum history list all" than "Login User" column

Cheers,
Tomas

Comment 4 James Antill 2011-04-28 20:42:03 UTC
This should be fixed in rawhide.