Difference between revisions of "Linux installing updates"

From rdkwiki
Jump to: navigation, search
m
 
(8 intermediate revisions by the same user not shown)
Line 3: Line 3:
  
 
== Install package-updates on CentOS 7 ==
 
== Install package-updates on CentOS 7 ==
* '''sudo yum update all''' --> install all available updates
+
* '''yum update all''' --> install all available updates (includes new kernels)
* '''sudo yum clean all''' --> clean up files
+
* '''yum clean all''' --> clean up packages and headers
 +
auotmatically check/install updates (optional):
 +
* '''sudo yum install yum-cron''' --> auto check for updates
 +
* '''sudo nano /etc/yum/yum-cron.conf''' --> set options (servername, email-address, etc.)
 +
* '''sudo systemctl start yum-cron''' --> start yum-cron
 +
* '''sudo systemctl enable yum-cron''' --> enable yum-cron at system startup
  
== Install package-updates on ubuntu 16.04 ==
+
 
* '''sudo apt-get update''' --> update the package-lists with latest information
+
== Install package-updates on Ubuntu 16.04 ==
* '''sudo apt-get upgrade''' --> install packages without adding or removing packages
+
* '''apt-get update''' --> update the package-lists with latest information
* '''sudo apt-get dist-upgrade''' --> install packages and adds or removes neccessary packages
+
* '''apt-get upgrade''' --> install packages without adding or removing packages
 +
* '''apt-get dist-upgrade''' --> install packages and adds or removes neccessary packages
 +
* '''apt-get autoclean''' --> clean up local repository
 +
* '''apt-get autoremove''' --> clean up unused automatically installed packages to satisfy dependencies
 +
 
 +
== Install package-updates on Debian 8.6 ==
 +
* '''apt-get update''' --> update the package-lists with latest information
 +
* '''apt-get upgrade''' --> install packages without adding or removing packages
 +
* '''apt-get dist-upgrade''' --> install packages and adds or removes neccessary packages
 +
* '''apt-get autoclean''' --> clean up local repository
 +
* '''apt-get autoremove''' --> clean up unused automatically installed packages to satisfy dependencies

Latest revision as of 13:36, 27 March 2017

Intro

The steps below describe how to install the latest package-updates.

Install package-updates on CentOS 7

  • yum update all --> install all available updates (includes new kernels)
  • yum clean all --> clean up packages and headers

auotmatically check/install updates (optional):

  • sudo yum install yum-cron --> auto check for updates
  • sudo nano /etc/yum/yum-cron.conf --> set options (servername, email-address, etc.)
  • sudo systemctl start yum-cron --> start yum-cron
  • sudo systemctl enable yum-cron --> enable yum-cron at system startup


Install package-updates on Ubuntu 16.04

  • apt-get update --> update the package-lists with latest information
  • apt-get upgrade --> install packages without adding or removing packages
  • apt-get dist-upgrade --> install packages and adds or removes neccessary packages
  • apt-get autoclean --> clean up local repository
  • apt-get autoremove --> clean up unused automatically installed packages to satisfy dependencies

Install package-updates on Debian 8.6

  • apt-get update --> update the package-lists with latest information
  • apt-get upgrade --> install packages without adding or removing packages
  • apt-get dist-upgrade --> install packages and adds or removes neccessary packages
  • apt-get autoclean --> clean up local repository
  • apt-get autoremove --> clean up unused automatically installed packages to satisfy dependencies