Raspbian Debian Software Updates: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 13: Line 13:


apt-get update
apt-get update
apt-get -y upgrade
apt-get -y full-upgrade
apt-get -y dist-upgrade
apt-get -y dist-upgrade
apt-get -y autoclean
apt-get -y autoclean
apt-get -y autoremove
echo
echo
echo Updates Completed
echo
</pre>
</pre>


Line 28: Line 34:
</pre>
</pre>


= raspbian Firmware =
= Raspbian Firmware =
This script already exists
This script already exists
<pre>
<pre>
sudo rpi-update
sudo rpi-update
</pre>
</pre>
== Installing ==
On the lite version of Raspbian this scrip is not pre installed.
<pre>
apt-get install rpi-update
</pre>
= debian mirrors =
Make sure you check out the package [[Debian_apt-get_mirrors | mirrors]]


[[Category: Raspberry Pi]] [[Category : Debian]]
[[Category: Raspberry Pi]] [[Category : Debian]]

Latest revision as of 01:19, 14 September 2020

Create a script to update the operating system.

sudo vi /usr/sbin/update

add the following contents to file

#!/bin/bash

if [[ ${EUID} -ne 0 ]]; then
        echo " !!! This tool must be run as root"
        exit 1
fi

apt-get update
apt-get -y full-upgrade
apt-get -y dist-upgrade
apt-get -y autoclean
apt-get -y autoremove

echo
echo
echo Updates Completed
echo

make file executable

sudo chmod +x /usr/sbin/update

execute script

sudo update

Raspbian Firmware

This script already exists

sudo rpi-update

Installing

On the lite version of Raspbian this scrip is not pre installed.

apt-get install rpi-update

debian mirrors

Make sure you check out the package mirrors