Linux Package Management
How do you install and manage software packages in Linux? What's the difference between apt and yum?
How do you install and manage software packages in Linux? What's the difference between apt and yum?
Package managers handle software installation, updates, and dependencies. apt (Debian/Ubuntu) and yum/dnf (RHEL/CentOS/Fedora) are the main ones. apt uses .deb packages, yum uses .rpm. Basic commands: apt update && apt install package, yum install package. Both resolve dependencies automatically.
Understanding package management is essential for setting up servers, installing dependencies, and maintaining system security through updates. Different distributions use different package managers, so knowing both apt and yum families is valuable.
apt commands (Debian/Ubuntu)
yum/dnf commands (RHEL/CentOS)
- Forgetting to run apt update before installing new packages
- Running apt upgrade in production without testing first
- Not understanding that apt and yum are for different distros
- What are PPAs and how do you add third-party repositories?
- How would you pin a package to a specific version?
- What's the difference between apt and apt-get?
More Linux interview questions
Also worth your time on this topic
Linux File Permissions
Explain Linux file permissions. What does the permission 'rwxr-xr--' mean?
junior
How to Fix "Argument List Too Long" Error for rm, cp, and mv Commands
Solve the 'argument list too long' error when working with thousands of files. Learn to use find, xargs, and loops as alternatives to wildcards for bulk file operations.
Creating and Connecting to Your First Linux Server
Spin up an Ubuntu 24.04 Linux server in the cloud, configure SSH key authentication, and learn to navigate your new server. This exercise uses DigitalOcean but the steps work with any cloud provider.
30 minutes