Linux for Developers Course
Linux for Developers
/
Beginner

Install & Remove Packages

Definition

The standard operational commands used to manage the lifecycle of software on a Linux system.

Explain Like I'm New

How to get apps and how to delete apps.

Real World Example

To install Node.js on Ubuntu: `sudo apt install nodejs`. To delete it when you are done: `sudo apt remove nodejs`.

Common Use Cases

  • •System administration
  • •Setting up dev environments

Interview Questions

basic

  • Do you generally need `sudo` privileges to install software globally on a Linux machine?

intermediate

  • What is the difference between `apt remove` and `apt purge`?

Flash Cards

Question

Need sudo?

Click to reveal answer
Answer

Yes. Installing software modifies system-wide directories (like `/usr/bin`), which requires superuser privileges.

Question

remove vs purge?

Click to reveal answer
Answer

`remove` deletes the main software but deliberately leaves behind all the configuration and settings files in case you ever reinstall it. `purge` violently deletes the software AND all its configuration files, completely wiping it from existence.