Updating a Dog-based OS : bash script

What features/apps/bugfixes needed in a future Puppy
Post Reply
Message
Author
labbe5
Posts: 2159
Joined: Wed 13 Nov 2013, 14:26
Location: Canada

Updating a Dog-based OS : bash script

#1 Post by labbe5 »

#!/bin/bash
apt list --upgradable | grep -v 'Listing...' | cut -d/ -f1 | tr '\r\n' ' ' | sed '$s/ $/\n/'
sudo apt update
sudo apt upgrade -y
sudo apt autoremove -y
sudo snap refresh
sudo flatpak update -y

Last two lines optional, depending on whether or not you use snap or flatpak packages.
Second line address upgradable packages, list them (optional).

Call this script update, make it executable and put it under usr/bin.

To upgrade your OS : $ update

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#2 Post by sc0ttman »

With Pkg (https://gitlab.com/sc0ttj/Pkg) installed, in proper Puppy Linux (not a DebianDog etc), you can do this:

Code: Select all

pkg list-installed        # list upgradeable packages
pkg update-sources   # update list of installed repos
pkg repo-update        # get latest repo files from online       
pkg update                 # update installed packages (not inc builtins)
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

Post Reply