BM: Baca dalam Bahasa Melayu
World L2: Keys & Staff
Packages with apt
You will learn: to find, install and remove programs safely from Debian's own store.
Checked with Linux (Debian 13) on 1 Nov 2026
The problem
You want a nicer way to see folders: a program called tree. You type tree. The server says -bash: tree: command not found. What now?
Pick one answer.
Watch
You are you in /home/you. 1 things here. Services: cron running, ssh running, nginx running.
you@kedai:~$Folder ~
- kedai/ (folder)
drwxrwxr-xkitchen menu
+ 3 hidden (ls -a)
Services
cronrunningstarts at bootsshrunningstarts at bootnginxrunningstarts at boot
A package: A ready-to-install program in one box, from the Debian store. apt fetches and installs it. is a program in a box from Debian’s store. apt show tree reads the label: version, size, what it does. apt is the store clerk.
Predict
You type apt install tree without sudo. It ends with are you root?. What does that mean?
Pick one answer.
Check
Put the install routine in order.
First step at the top. Put these in order. Use the arrows, or drag.
- apt show tree: read the label
- sudo apt update: fetch the latest shelf list
- tree: use it
- sudo apt install tree: bring it in
Try it
Refresh the list, install tree, then run it: sudo apt update, then sudo apt install tree, then tree.
You are you in /home/you. 1 things here. Services: cron running, ssh running, nginx running.
you@kedai:~$Folder ~
- kedai/ (folder)
drwxrwxr-xkitchen menu
+ 3 hidden (ls -a)
Services
cronrunningstarts at bootsshrunningstarts at bootnginxrunningstarts at boot
Hint
Read the Summary lines before apt starts: what comes in, how big.Check
update, upgrade or remove? Pick the right one.
Drag a card into a box. Or tap the card, then tap the box.
Check
Safe on a server, or risky?
Swipe right for good, left for needs work. Or use the buttons.
sudo apt install htopYou did it!
You can now find, install and remove programs safely with apt.
Go deeper (optional)
Real rep (optional): on a Debian or Ubuntu VM, try apt search monitor. Install security updates often: sudo apt update && sudo apt upgrade.
Where the story breaks: real staff can say no. A process does exactly what its program says, and root can do anything. That is why keys matter so much.
Bahasa Melayu
Anda mahu cara lebih cantik untuk tengok folder: program bernama tree. Anda taip tree. Server kata -bash: tree: command not found. Sekarang apa?
Package (pakej) ialah program dalam kotak dari stor Debian. apt show tree baca labelnya: versi, saiz, apa ia buat. apt ialah kerani stor.
Anda taip apt install tree tanpa sudo. Ia berakhir dengan are you root?. Apa maksudnya?
Susun rutin memasang.
Segarkan senarai, pasang tree, kemudian jalankannya: sudo apt update, kemudian sudo apt install tree, kemudian tree.
update, upgrade atau remove? Pilih yang betul.
Selamat di server, atau berisiko?
Kini anda boleh cari, pasang dan buang program dengan selamat guna apt.
You finished this before. Practice is always welcome!
Official docs: apt (Debian 13 man page) · Debian Reference: package management · Debian packages: tree
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?