Skip to content
/ kpm Public

KPM lets systems with APT upgrade automatically

License

Notifications You must be signed in to change notification settings

k4yt3x/kpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 

Repository files navigation

K4YT3X Package Manager

KPM performs APT full upgrade automatically. It has the following workflow:

  1. Update APT cache
  2. Check if upgrades are available
  3. Check if upgrades are safe
    • An upgrade is deemed unsafe it it removes any packages
    • Manual confirmation is required to commence unsafe upgrades
  4. Check and purge automatically installed unused packages
  5. Check and purge residual configuration files
  6. Remove old downloaded archives

kpm
KPM in action

Installation

git clone https://github.com/k4yt3x/kpm.git

# install Python dependencies
sudo pip3 install -Ur kpm/src/requirements.txt

# install kpm script into system
sudo python3 kpm/src/kpm.py --install_kpm

# you may also move the file manually
sudo mv kpm/src/kpm.py /usr/local/bin/kpm
sudo chown root:root /usr/local/bin/kpm
sudo chmod 755 /usr/local/bin/kpm

Removal

KPM does not produce any cache files or configuration files. Simply remove the script from /usr/local/bin.

sudo rm /usr/local/bin/kpm

Full Usages

Issuing the command kpm without any arguments will launch automatic upgrade. The usages can also be printed via issuing the command kpm -h or kpm --help.

usage: kpm.py [-h] [-i] [--install_kpm] [--force_upgrade]

optional arguments:
  -h, --help            show this help message and exit

ACTIONS:
  -i, --ignore_connectivity
                        ignore internet connectivity check results
  --install_kpm         install KPM to system
  --force_upgrade       force replacing KPM with newest version