Skip to content

Fixes #39499 - pkg upgrade on debian should only upgrade a single pkg - #11087

Open
sbernhard wants to merge 1 commit into
theforeman:developfrom
ATIX-AG:fix_39499
Open

Fixes #39499 - pkg upgrade on debian should only upgrade a single pkg#11087
sbernhard wants to merge 1 commit into
theforeman:developfrom
ATIX-AG:fix_39499

Conversation

@sbernhard

Copy link
Copy Markdown
Contributor

Additionally, I have added a routine which can be used to run package upgrade for all packages of a system.

@sbernhard

Copy link
Copy Markdown
Contributor Author

I have verified, that the PKG_MANAGER_UPGRADE was only use once in the subscription_manager_setup snippet.

Additionally, I have added a routine which can be used to run package
upgrade for all packages of a system.
Comment on lines 44 to +47
PKG_MANAGER_INSTALL="${PKG_MANAGER} --noconfirm -S"
PKG_MANAGER_REMOVE="${PKG_MANAGER} --noconfirm -R"
PKG_MANAGER_UPGRADE="${PKG_MANAGER} --noconfirm -S"
PKG_MANAGER_UPGRADE_ALL_PACKAGES="${PKG_MANAGER} --noconfirm -Syu"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add the -y parameter to INSTALL and UPGRADE as well?

I did a short test and it seems there might be cases that require it:

$ docker run -ti --rm archlinux
[root@7417749f4373 /]# pacman --noconfirm -S vim
warning: database file for 'core' does not exist (use '-Sy' to download)
warning: database file for 'extra' does not exist (use '-Sy' to download)
error: target not found: vim
[root@7417749f4373 /]# pacman --noconfirm -Sy vim
:: Synchronizing package databases...
 core downloading...
 extra downloading...
resolving dependencies...
looking for conflicting packages...
[tldr: successful installation]

@m-bucher m-bucher left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My comment regarding ARCH Linux command is not really related to the original ticket so I guess it is not a necessity for this PR to pass 👼

@sbernhard
sbernhard requested a review from stejskalleos July 27, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants