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

Please implement update --downloadonly #537

Closed
mark-hyde opened this issue May 16, 2023 · 3 comments · Fixed by #559
Closed

Please implement update --downloadonly #537

mark-hyde opened this issue May 16, 2023 · 3 comments · Fixed by #559
Assignees

Comments

@mark-hyde
Copy link

mark-hyde commented May 16, 2023

Hi,
I'm testing how dnf 5 works with auter and have found that there is currently no --downloadonly option in the dnf5 update subcommand.

rackerlabs/auter#245

A typical auter use-case is to have a cronjob run at the start of a month, (which runs dnf/yum update --downloadonly) which resolves all dependencies and downloads the packages.
These can then be applied at a later date (typically staging devices might have packages installed a week or 2 before production), but because the packages were downloaded at the same time, you get pretty much the same packages in both staging and production servers even though they might have been patched some weeks apart.

Could you please implement dnf5 update --downloadonly

As a workaround I'm considering running 'dnf5 check-update', using awk to grab the 1st column, and feed that into dnf download with the --resolve flag, but I'm not entirely convinced yet that this will reliably give the same result.

@j-mracek
Copy link
Contributor

Related to #555

@mark-hyde
Copy link
Author

Hi,
I've
Could you also document this option in dnf5 --help? Auter checks this to see if the option is available.
While I could write around that, it would be better if it were documented in the help anyway.

@mark-hyde
Copy link
Author

I created #602 as this is closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants