39 Commits

Author SHA1 Message Date
Ilia Ross
9faa2b4323 Fix failed DNF update checks showing no updates
This PR fixes the Package Updates module reporting "no updates" when dnf check-update fails.

DNF prints its error to stderr and exits with status 1, but the module only read stdout, so a failed check looked like an empty list and was cached for hours. Users could go weeks or months without seeing that updates were blocked!

The module now checks the exit status. When a check fails, it keeps the last known list, shows the error on the module and refresh pages, and retries after 15 minutes instead of caching an empty result.

Scheduled checks email the failure instead of acting on the old list, and in new-only mode the failure is emailed once until a check succeeds again.

Fixes https://forum.virtualmin.com/t/no-warning-of-dnf-error-suppressing-update/138052
2026-09-25 02:10:53 +02:00
Ilia Ross
65e6226762 Add option to only email about newly available package updates
https://forum.virtualmin.com/t/can-we-make-security-updates-email-less-chatty/137796
2026-08-21 01:43:53 +02:00
Ilia Ross
e695fbd0c7 Add APT package hold management to Package Updates
- Add an APT-only “Held updates” view while keeping held packages excluded from normal and scheduled updates.

- Allow administrators to hold or unhold packages from package details.

- Allow explicitly selected held packages to be updated once, then restore all existing package holds.

- Preserve configured `aptitude` behavior for regular installs while using `apt-get` for the held-package override.

Fixes #2689
2026-08-14 03:43:50 +02:00
Jamie Cameron
6f4f85d33c Add UI option to control when update email is sent
https://github.com/webmin/webmin/issues/2726
2026-05-24 13:08:58 -07:00
Ilia Ross
a4846f5f32 Add an option to disable external programs from performing upgrades
Some checks failed
webmin.dev: webmin/webmin / build (push) Has been cancelled
2026-03-17 20:11:36 +02:00
Ilia Ross
bebd99d656 Add informational note about updates #2639
Some checks failed
webmin.dev: webmin/webmin / build (push) Has been cancelled
2026-03-17 12:56:03 +02:00
Jamie Cameron
f5c158ef6a Respect global notification address 2025-10-18 20:42:48 -07:00
Jamie Cameron
401631daec Merge pull request #2284 from webmin/dev/support-deb822-style-repos
Add support for listing `deb822-style` repos
2025-01-25 12:13:02 -08:00
Jamie Cameron
5992c7ba51 Respect global to address if set 2024-10-13 19:36:37 -07:00
Ilia Ross
89300de664 Add support for listing deb822-style repos
https://forum.virtualmin.com/t/package-repositories-empty-ubuntu-24-04/129152/12?u=ilia
2024-09-16 20:55:43 +03:00
Ilia Ross
a5301245d3 Fix to always show security updates button 2024-07-16 17:38:14 +03:00
Jamie Cameron
3b38106363 Fix border param 2024-02-25 12:06:25 -08:00
Jamie Cameron
5c8d5ee75e Add option to notify for security updates only https://github.com/webmin/webmin/issues/2075 2024-01-14 10:37:30 -08:00
Jamie Cameron
98a9313d81 Don't re-compare versions if the update system thinks there's an update 2023-02-03 18:16:01 -08:00
Jamie Cameron
1879848d11 Remove spacer 2023-01-09 23:29:44 -08:00
Jamie Cameron
b118a05209 Show security tab if it was selected before 2021-11-09 18:57:55 -08:00
Ilia Rostovtsev
e82c202d2e Revert 8cc0aaad04 2020-01-27 13:41:21 +03:00
Ilia Rostovtsev
8cc0aaad04 Fix to handle backports repos (Ubuntu enabled default)
https://www.virtualmin.com/node/68256
2020-01-18 15:18:21 +03:00
Jamie Cameron
046efee6e8 Work on actually creating repos 2019-04-21 16:53:41 -07:00
Jamie Cameron
0fea5b9078 Work on repo management 2019-03-09 23:14:30 -08:00
Jamie Cameron
f2c7e4b697 Show page of available repositories 2019-03-03 22:15:12 -08:00
Jamie Cameron
7a4c83ba35 Use the package updates module to install new packages 2018-11-03 17:06:10 -07:00
Gnadelwartz
cbc093ce35 add _top to top buttons 2018-02-11 18:15:59 +01:00
Gnadelwartz
828af0e19f cleanup package-updates 2018-02-11 16:50:35 +01:00
Gnadelwartz
bf6d367957 fix buttons above table send checked packages 2018-02-11 16:23:55 +01:00
Gnadelwartz
ceb540f15c place buttons also on top of update-packages list 2018-02-11 12:57:16 +01:00
Jamie Cameron
ce18bbe753 Add missing source columns properly https://github.com/qooob/authentic-theme/issues/661 2017-02-04 21:31:04 -08:00
Jamie Cameron
b2511a047c In new packages mode, don't show the whole list by default 2016-10-10 15:56:27 -07:00
Nawawi Jamili
1922d3b94c ui_link conversion -> package-updates 2013-12-19 17:01:27 +08:00
Jamie Cameron
c97447fe9e Use more generic function for getting package list 2010-01-05 15:18:36 -08:00
Jamie Cameron
5df34091a5 Make package mode more useful 2010-01-05 00:22:35 -08:00
Jamie Cameron
b66728033e More hacking on improved package updates list 2010-01-04 16:07:32 -08:00
Jamie Cameron
585af4b745 Removed support for working on just Virtualmin packages 2009-10-08 22:50:09 -07:00
Jamie Cameron
f625d505f3 Rename module, better virtualmin check 2009-10-03 17:35:33 -07:00
Jamie Cameron
d2c3b072e3 Fixed scheduled updates feature 2009-10-03 14:34:54 -07:00
Jamie Cameron
d3178eedf5 Speed up policy checking on Debian 2009-10-02 17:31:29 -07:00
Jamie Cameron
f45911beb6 Confirmation page for package updates 2009-10-02 14:47:50 -07:00
Jamie Cameron
5284cc7f0c More work on package updates module 2009-10-01 22:53:38 -07:00
Jamie Cameron
136a04a61c First cut of the new package updates module 2009-10-01 14:09:36 -07:00