Skip to content

Instantly share code, notes, and snippets.

@ZhanZiyuan
Created December 30, 2023 03:16
Show Gist options
  • Save ZhanZiyuan/115e270b3185ed7ad3b486a62240737e to your computer and use it in GitHub Desktop.
Save ZhanZiyuan/115e270b3185ed7ad3b486a62240737e to your computer and use it in GitHub Desktop.
The shell script to check updates for Ubuntu.
#!/bin/bash
# update apt-get and update wget ca-certificates
sudo apt-get update && sudo apt-get install wget ca-certificates
# check if there are updates available for installed packages, giving a summary report
# upgrade installed packages
# [apt update and apt upgrade](https://blog.csdn.net/CSDN_duomaomao/article/details/77802673)
sudo apt update && sudo apt upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment