Apt-Upgrade

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.

View on GitHub

Apt-Upgrade

Linux Utility Fortran Utility Command Line Utility APT Utility Fortran Utility

***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

  1. Description
  2. Motivation
  3. Usage
  4. Files
    1. Source Files
    2. Source/Mod Compiled
    3. Full Project
    4. Compiled
    5. This Repository
    6. Release Page
  5. Media
    1. Help Screen
    2. Upgrade
    3. Error Handling
  6. License

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.

Media

Help Screen

Help Screen

Upgrade

Upgrade

Errors

Error here is thrown by not being sudo.

Errors

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.