Apt-Upgrade
***Note:***
I will be giving credit to the author of the foul module which I will add on 4/7/20, but I do have plans to write a different module of the same thing very soon.
Index
Description
A nice little wrapper cli utility to help update and upgrade programs installed with the APT package manager with error handling and color output. Written in Fortran (yes).
Motivation
I like to write tools for things do often. And I just love to program for no reason at all…
Usage
This is a compiled command line interface executable and can be executed in any normal manner as any other cli exectuable; Shells Bash, ZSH, SH, etc… It can, of course, be used in scripts or programs and since it has exit codes better control can be had over said scripts.
It can be used with “sudo” as I’d hope one might use and have set up properly.
$ # If in path:
$ sudo apt-upgrade --help
Usage: apt-upgrade [OPTION]...
Run "apt update" and "apt upgrade -y"
Options:
-h, --help this help screen.
-s, --silent run silently when possible.
Exit Codes:
0 no error.
1 APT not found.
2 error in "apt update"
3 error in "apt upgrade -y"
$
$ # Run completely silent; APT is hard to supress,
$ # my internal code plus this extra is full
$ # supression.
$ sudo apt-upgrade -s 2>&1>/dev/null
$
Files
Everything for this project can be found here from source files to compiled executables.
- Source Files
- Source With Compiled Module
- Archived Full Project Files
- Compiled Exectuable
- This Repository
- Release Page
Media
Help Screen
Upgrade
Errors
Error here is thrown by not being sudo.
License
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.