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

Feature Request: opkg: support upgrading all packages #62

Open
wberrier opened this issue Jun 7, 2023 · 2 comments
Open

Feature Request: opkg: support upgrading all packages #62

wberrier opened this issue Jun 7, 2023 · 2 comments

Comments

@wberrier
Copy link

wberrier commented Jun 7, 2023

For example, with the yum module:

yum:                                                                                                                                                                                                                                     
  name: '*'                                                                                                                                                                                                                              
  state: latest                                                                                                                                                                                                                          

It would be nice to be able to do the same with opkg:

opkg:                                                                                                                                                                                                                                     
  name: '*'                                                                                                                                                                                                                              
  state: latest                                                                                                                                                                                                                          

Looking at the code, probably wouldn't be too bad to special case *, do opkg list-upgradable and feed that into install_packages.

@marek22k
Copy link

marek22k commented Jul 2, 2023

I currently use

- name: Upgrade packages
  shell: "opkg list-upgradable | cut -f 1 -d ' ' | xargs -r opkg upgrade"

for this task.

@spacelama
Copy link

Keeping in mind that openwrt themselves recommend you don't upgrade packages outside of the release upgrade cycles: https://openwrt.org/meta/infobox/upgrade_packages_warning

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

No branches or pull requests

3 participants