Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark transient transactions in DNF history #2196

Open
evan-goode opened this issue Jan 17, 2025 · 3 comments
Open

Mark transient transactions in DNF history #2196

evan-goode opened this issue Jan 17, 2025 · 3 comments
Labels
Priority:LOW RFE Request for Enhancement (as opposed to a bug) triaged

Comments

@evan-goode
Copy link
Member

It may be useful to mark transient transactions as such in the DNF history database. dnf4 history list could display this marker in the table output or omit transient transactions by default. A flag could be added to history list to show only transient transactions.

dnf4 history list does include the command line used to initiate a transaction, which would include the --transient flag if it was used, but the user might have set persistence=transient in dnf.conf, so it's not clear whether the transaction was transient just based on the command line.

@ppisar
Copy link
Contributor

ppisar commented Jan 20, 2025

What about moving the DNF history database under /usr which is subject of overlayfs?

@ppisar ppisar added triaged Priority:LOW RFE Request for Enhancement (as opposed to a bug) labels Jan 20, 2025
@evan-goode
Copy link
Member Author

What about moving the DNF history database under /usr which is subject of overlayfs?

That might be a good idea. That would mean after dnf -y install --transient hello && reboot , the operation wouldn't be shown in DNF history at all, so the history DB would accurately reflect the state of the system.

Would we still want a marker in the history for transient transactions? So that a user with persistence=transient running dnf -y install hello && dnf history list could clearly see which transactions were transient and which weren't. This gets into the broader question of getting a diff of the installed packages between the transient overlay and the host system, and maybe the history command is not the best tool for that job.

@ppisar
Copy link
Contributor

ppisar commented Feb 14, 2025

I did not know that users want to see a border line between persistent and transient transaction in the history. Then we would still have to keep the marker in the history.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:LOW RFE Request for Enhancement (as opposed to a bug) triaged
Projects
None yet
Development

No branches or pull requests

2 participants