Linux Mint is a popular, user-friendly distribution based on Ubuntu, known for its simplicity, performance, and ease of use. While most users rely on the built-in Software Manager to install applications with a graphical interface, using the terminal provides ultimate control, flexibility, and speed. For those looking to fully embrace the power of Linux, understanding how to install apps using the terminal is a valuable skill.
Why Use the Terminal?
While the Software Manager is convenient, the terminal offers several advantages:
- Speed: Installing applications via terminal is usually faster.
- Precision: You have direct control over package names and versions.
- Scriptability: Terminal commands can be included in automation scripts for repeatable setups.
- Learning: Using the terminal increases your familiarity with Linux commands and concepts.
1. Update Your System First
Before installing anything, it’s a good idea to update your package index. This ensures you are downloading the latest versions of packages available in the repositories.
sudo apt update
If you want to upgrade all packages after updating the index, you can run:
sudo apt upgrade
2. Installing Software Using apt
The most common package manager on Linux Mint is apt
(Advanced Package Tool). With apt, installing an application is straightforward. For example, to install VLC, a popular media player, you’d use:
sudo apt install vlc
This command downloads VLC and all its required dependencies and installs them on your system.
To confirm whether a package is already installed or not, you can run:
dpkg -l | grep vlc
3. Removing Installed Applications
If you no longer need an application, you can uninstall it using:
sudo apt remove vlc
This will remove the VLC application but leave behind its configuration files. If you’d like to completely remove VLC along with its config files, use:
sudo apt purge vlc
After uninstalling an application, you can also clean up unused dependencies with:
sudo apt autoremove
4. Searching for Packages
If you’re unsure of the exact name of a package, you can search for it using the apt search
command:
apt search pdf reader
This will return a list of related packages that match your search keywords.
5. Installing Software from a .deb File
Some applications are not available in the official repositories and are provided as .deb
files by vendors or developers. To install a .deb
file using the terminal:
sudo dpkg -i package-name.deb
Note: Replace “package-name.deb” with the actual filename of your downloaded .deb file.
If there are missing dependencies, run the following command to correct them:
sudo apt --fix-broken install
6. Installing Applications from PPAs
Personal Package Archives (PPAs) are a way to distribute software that’s not in the official repositories. Adding a PPA is a three-step process:
- Add the PPA:
sudo add-apt-repository ppa:repository/name
- Update your package list:
sudo apt update
- Install the package:
sudo apt install package-name
Be cautious when adding PPAs. Only add trusted sources to avoid potential security and stability issues.
Final Thoughts
Using the terminal to install applications in Linux Mint is efficient, powerful, and often faster than the graphical interface. Whether you’re a beginner aiming to learn more about Linux or an advanced user looking for better control, the command line is your ally. Remember to keep your system updated, be careful with external sources like PPAs, and don’t hesitate to explore and learn through the terminal.
By mastering this skill, you empower yourself to troubleshoot, automate, and tailor your Linux Mint environment precisely to your needs.