Ask Your Question

Add a description to dnf install

asked 2015-06-25 15:03:59 -0500

ptselios gravatar image

Hello, I would like to install a couple of packages for test reasons on my Fedora 22 laptop. Since I want to use it for test purposes only, I wander if it's possible to add a description for my transaction in order to know which id is the transaction that I need to "undo".
For example:

dnf install test-package --description "Test Package 1"

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-06-25 15:21:13 -0500

florian gravatar image

updated 2015-06-25 15:22:14 -0500

man page is not mentioning what you are looking for - but it would be nice-to-have.

All I can think of is running sudo dnf history list and you should be able to locate the install of your test-package and see the transaction ID. Use sudo dnf history info to verify.

Or you try to remember how many transaction you ran afterwards (if feasible) and run sudo dnf history undo last-<x> where is an integer offset that specifies the transaction preceding the most recent one.

edit flag offensive delete link more


I know that man page doen't mention it :) That's why I am asking that here :)
dnf history list provides the if, the date, the action and the packages.
So far, I keep a txt file with important changes, but it's stupid to have 2 DBs for the same thing.

ptselios gravatar imageptselios ( 2015-06-25 22:26:49 -0500 )edit

Maybe you should contact the developers of DNF and suggest your idea! Maybe it is doable...

florian gravatar imageflorian ( 2015-06-26 13:17:07 -0500 )edit

Question Tools

1 follower


Asked: 2015-06-25 15:03:59 -0500

Seen: 70 times

Last updated: Jun 25 '15