How to update Ubuntu from the command line in an easy way

Read this article in english Diesen Artikel auf Deutsch lesen

If you'd like to update ubuntu using the command line, this tipp can hel you. The idea is to create an excecutable file which updates the sources repositories, and upgrades the system, in other words, excecute the next two commands sudo apt-get update and sudo apt-get upgrade using only one command. To do it... we only need to run the next two lines in a terminal:

  1. echo -e "sudo apt-get update && sudo apt-get upgrade" | sudo tee -a /usr/local/bin/update
  2. sudo chmod +x /usr/local/bin/update

The first one creates a file called update, located in /usr/local/bin, and writes the famous two commands in it, and the second one, gives this file permissions to be executed. From now on we can update the entire system excecuting "sudo update" (without quote marks) in a terminal.

Accelerate the upgrade and installation of packages in Ubuntu

Read this article in english Diesen Artikel auf Deutsch lesen

Sometimes, when we are upgrading our system or when we want to download a package it occurs, that the download is too slow, in this case we should select a server close to our location. Ubuntu has a specific tool incorporated to realize this task for us, which we can find in the menu System -> Administration -> Software Origins. Where we'll see the following window...

Read the rest of this entry »