lkt-system-update
v1.0.0
Published
One command line, everything up to date (apt, dnf, yum, pacman, yaourt, zypper, flatpak, npm and snap)
Maintainers
Readme
LKT System Update
One command line, everything up to date
Features
- Automatic detects if it's a normal user or root/sudo
- Supports apt, dnf, yum, pacman, yaourt, zypper, flatpak, npm and snap
Installation
npm install -g lkt-system-updateUsage
lkt-system-updateAs soon as you press Enter, the command will prompt info about what's running out.
If required (not root), password will request.
APT sample

And will be noticed when finished:

Update order
- OS package engine: apt, yum, pacman...
- OS package cleaning (apt only)
- flatpak (only if installed)
- snap (only if installed)
CLI options
Options:
| Option | Result | |-------------------|------------------------------| | -V, --version | output the version number | | --no-snap | prevent snap packages update | | --no-npm | prevent npm packages update | | -i, --interactive | enables interaction | | -h, --help | display help for command |
The no snap option exists in case you want to use this command in scheduled scripts because snap API doesn't allow user to skip password authentication.
By default, this command updates the system without the need of user input, but you can be able to manually confirm the updates with the interactive option.
Examples
# Common user usage
lkt-system-update
# Common user usage, but wants to confirm updates
lkt-system-update -i
# Run in an scheluded cronjob
lkt-system-update -ns