One command, and the program is installed: no websites, no installers. In this episode you'll learn how apt and the Ubuntu repositories work, the difference between apt update and apt upgrade, how to search, install and remove packages (remove vs. purge vs. autoremove), how to list installed and upgradable packages, when to use snap instead of apt, and how Ubuntu installs security updates automatically. This episode completes Level 1 of the course!

⏱ Chapters
0:00 One command installs it all
0:18 How apt works (repositories)
0:41 apt update
0:56 apt upgrade (update vs upgrade)
1:16 Search & install packages
1:41 remove, purge & autoremove
2:02 Listing packages
2:17 snap vs apt
2:41 Automatic security updates & reboot
3:02 Common mistakes
3:26 Cheat sheet
3:44 Like & subscribe
3:55 Homework & up next

⌨️ Commands from this video
sudo apt update download the latest package list
sudo apt upgrade install the available updates
sudo apt update && sudo apt upgrade -y both in one line, answer yes automatically
apt search nginx find a package
apt show nginx package details and dependencies
sudo apt install nginx install a package (several: apt install htop curl git)
sudo apt remove nginx remove the program, keep its config files
sudo apt purge nginx remove the program and its config files
sudo apt autoremove clean up dependencies nothing needs anymore
apt list --installed | grep nginx is it installed?
apt list --upgradable what's waiting for an update?
sudo snap install btop install a snap from the Snap Store
snap list list installed snaps
sudo reboot restart after "System restart required"

💡 update = refresh the list, upgrade = install the updates. Always update before you install.
🔒 unattended-upgrades installs security updates automatically (on by default).

📺 Full course playlist:
◀ Previous – #7 File Permissions: chmod, chown, umask: [EP7 LINK]
▶ Next – #9 Networking Basics: IP, DNS & Ports: coming soon

💬 Homework: update your server, install htop and run it (q to quit), then remove it and run autoremove. How many packages does your server have? Tell me in the comments!

👍 If this helped, like & subscribe, it keeps the course free.
© netacademy.ge

#Linux #UbuntuServer #SysAdmin

Last modified: Sunday, 6 December 2026, 10:07 AM