loader image

How to update Linux through the terminal, Debian based.

What makes us different from other similar websites? Forums Tech How to update Linux through the terminal, Debian based.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6704
    thumbtak
    Keymaster

    Below are all the commands you can use to make sure your system is up-to-date.

    $ sudo apt update
    $ sudo apt upgrade -y
    $ sudo apt autoremove -y
    $ sudo snap refresh
    $ sudo flatpak upgrade -y
    $ sudo apt dist-upgrade -y
    $ flatpak uninstall --unused
    $ sudo do-release-upgrade

    Note: Some may not work as you do not have the tool installed.

    • This topic was modified 2 years, 7 months ago by thumbtak. Reason: "flatpak uninstall --unused" was added
    • This topic was modified 2 months, 1 week ago by thumbtak. Reason: Added installed system upgrade to new version, if one exist
    #7672
    thumbtak
    Keymaster

    You can save the following script as system-upgrade.sh if you want a script to run when you want to fully update.

    #!/bin/bash
    
    echo -e "\033[30;45mUpdating APT repository index...\033[0m"
    sudo apt-get update
    
    echo -e "\033[30;45mUpgrading existing installed packages...\033[0m"
    sudo apt-get upgrade -y
    
    echo -e "\033[30;45mPerforming distribution upgrade...\033[0m"
    sudo apt-get dist-upgrade -y
    
    echo -e "\033[30;45mRemoving unnecessary packages to save disk space...\033[0m"
    sudo apt-get autoremove -y
    
    echo -e "\033[30;45mUpgrade installed Flatpak applications\033[0m"
    flatpak upgrade
    
    echo -e "\033[30;45mRefreshing Snap...\033[0m"
    sudo snap refresh
    
    echo -e "\033[30;45mUpgrade to next Xubuntu LTS release...\033[0m"
    sudo do-release-upgrade

    Run the script by using the following command …

    $ ./system-upgrade.sh

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
TAKs Shack