The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

Views: 3,229β€…    Votes:  3β€…
Tags: command-line   apt   updates  
Link: πŸ” See Original Answer on Ask Ubuntu πŸ”—

Title: A new command combining apt update && apt upgrade in 18.04 or some later beta?
ID: /2018/09/24/A-new-command-combining-apt-update-__-apt-upgrade-in-18.04-or-some-later-beta_
Created: September 24, 2018    Edited:  September 24, 2018
Upload: November 24, 2022    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false

Edit your ~/.bashrc file and add this:

update () {
    sudo apt-get update
    sudo apt-get upgrade "$@"

Save the file, close any open terminal(s) and open a new terminal.

Test from the command line like this:

$ update -s
Hit:1 xenial InRelease
Hit:2 xenial-security InRelease                          
Ign:3 stable InRelease                               
Hit:4 xenial InRelease                                 
Hit:5 xenial InRelease    
Hit:6 xenial-updates InRelease                         
Hit:7 stable Release                                 
Hit:9 xenial-backports InRelease                       
Hit:10 xenial InRelease
Hit:11 xenial InRelease       
Reading package lists... Done                      
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  binutils google-chrome-stable
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Inst google-chrome-stable [69.0.3497.92-1] (69.0.3497.100-1 Google:1.0/stable [amd64])
Inst binutils [2.26.1-1ubuntu1~16.04.6] (2.26.1-1ubuntu1~16.04.7 Ubuntu:16.04/xenial-updates [amd64])
Conf google-chrome-stable (69.0.3497.100-1 Google:1.0/stable [amd64])
Conf binutils (2.26.1-1ubuntu1~16.04.7 Ubuntu:16.04/xenial-updates [amd64])

You will be prompted for your password if you haven’t used the sudo command in awhile.

⇧ No more 4K Screen Resolution after Kernel Upgrade How can I disable automatic screen dimming when the wireless mouse has low battery?  β‡©