Tag Archives: apt-get

Combine apt-get update and apt-get upgrade in one command

Combine apt-get update and apt-get upgrade in one command | On Ubuntu or Debian, it is possible to make a small bash one-liner to fully update the host with one simple command. I’ll show you how! 1. Create a file called ‘update’ in /usr/local/bin: $ sudo nano /usr/local/bin/update 2. Type the following for the file contents, then save with Control+X. #!/bin/bash sudo apt-get update &&

Ubuntu Server MOTD Include Security Updates

Ubuntu Server MOTD Include Security Updates | Ubuntu Server can display outstanding package and security updates as the MOTD when logging in locally or via ssh. I’ll show you how! To enable this feature, install the following package: $ sudo apt-get install update-notifier-common The terminal output will look as below: $ ssh user@example.com Linux example.com 3.0.18-linode43 #1 SMP Mon Jan 30 11:44:09

Select Fastest Debian Mirror for apt-get

Select Fastest Debian Mirror for apt-get | With Debian you can easily auto-detect the fastest mirror for apt-get! First install this package: $ sudo apt-get install netselect-apt Then run the following, adjusting for your desired version. I’m using LMDE, so I’m going to run: $ sudo netselect-apt testing Other examples: sudo netselect-apt [stable|testing|unstable|experimental|release_codename|sid] This will query various debian mirrors then leave a