Raspbian Debian Software Updates

From KlavoWiki
Revision as of 02:19, 12 April 2015 by David (talk | contribs) (Created page with "Create a script to update the operating system. <pre> sudo vi /usr/sbin/update </pre> add the following contents to file <pre> #!/bin/bash if [[ ${EUID} -ne 0 ]]; then...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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 upgrade
apt-get -y dist-upgrade
apt-get -y autoclean

make file executable

sudo chmod +x /usr/sbin/update

raspbian Firmware

This script already exists

sudo rpi-update