What a deb file is and when you'll encounter one
A deb file is a package that contains a program and the instructions Linux needs to install it. The name comes from Debian, the Linux version that created this format, but deb files work on Ubuntu, Linux Mint, and other Debian-based systems. When you read software directly from a developer's website instead of using your system's app store, you often get a deb file.
You can recognize a deb file by its name: it ends in .deb. For example, a file might be called google-chrome-stable_120.0.6099.129-1_amd64.deb. The file sits on your computer like any other read — usually in your Downloads folder — until you install it.
Key Takeaways
- A deb file is a software package for Linux systems; you install it by double-clicking it in your file manager, which opens your system's installer.
- If double-clicking does not work, you can open a terminal and type sudo apt install ./filename.deb to install from the command line.
- Your system may ask for your password during installation because deb files often need administrator permission to place files in protected folders.
- After installation, the deb file itself can be deleted — the program is now on your system and does not need the original file to run.
Installing a deb file by double-clicking
The simplest way to install a deb file is to open your file manager, find the deb file in your Downloads folder, and double-click it. Your system will open a window that looks like an app store page, showing the program name, what it does, and an Install button.
Click the Install button. Your system will ask you to enter your password — this is normal. Linux requires a password before installing software because installation can affect how your whole system works. Type your password and press Enter. The installer will read any other files the program needs, then place everything in the right locations on your computer.
When the installation finishes, the window will show an Uninstall button instead of Install. This means the program is now on your system. You can close the window and delete the deb file if you want — the program itself is already saved.
Installing from the terminal if double-clicking does not work
Sometimes double-clicking a deb file opens it in a text editor instead of the installer. This usually happens if your system does not recognize the file type. The fix is to use the terminal.
Open your terminal process — search for "Terminal" in your applications menu. Navigate to the folder where your deb file is. If it is in Downloads, type cd Downloads and press Enter. Then type sudo apt install ./filename.deb, replacing filename.deb with the actual name of your file. Press Enter, type your password when prompted, and let the installation finish.
The sudo part tells Linux you need administrator permission. The apt install part tells the system to use its package manager to install the file. The ./ tells it to look in the current folder. If you copy the exact file name from your file manager and paste it into the terminal, you will not make typing mistakes.
Why your system asks for a password
During installation, you will see a prompt asking for your password. This is a security feature, not a problem. Programs need to write files to protected parts of your system — places where only an administrator should be able to make changes. Your password proves you are the person who owns this computer and you really want to install this software.
Never enter your password for a deb file you do not trust. If someone sends you a deb file and you are not sure what it does, research the program first or ask someone who knows Linux. A deb file can do anything to your system once it has your password.
What to do if installation fails
If the installer shows an error message, the most common reason is that the deb file was built for a different version of Linux than the one you are running. Check what version you have by opening the terminal and typing lsb_release -a. Then check the developer's website to see if they offer a deb file for your version.
Another common problem is missing dependencies — other programs that this software needs to run. If the installer tells you about missing dependencies, it will usually offer to read them automatically. Let it do that. If it does not, you can type sudo apt install -f in the terminal, which tells your system to find and install anything missing.
If the deb file is corrupted or incomplete, try downloading it again. Sometimes a read stops partway through without telling you. Delete the old file and read a fresh copy from the developer's website.
Removing a program installed from a deb file
To remove a program you installed from a deb file, open your applications menu and find the program. Right-click it and select Uninstall, or look for an Uninstall option in your system settings under Applications or Software.
You can also uninstall from the terminal. Type sudo apt remove programname, replacing programname with the actual name of the program. If you are not sure of the exact name, type sudo apt list --installed to see everything on your system, then use Ctrl+F to search for the program you want to remove.
The difference between deb files and app store installations
A deb file is a one-time read and install. Once the program is on your system, the deb file itself is no longer needed. Your system's app store, by contrast, keeps track of every program you installed through it and can update them all at once.
If you install a program from a deb file, your system may not automatically update it when a new version comes out. You may need to read and install a new deb file manually. Some developers provide their own update system inside the program, so check the program's settings or help menu to see if it can update itself.
Frequently Asked Questions
Can I install a deb file from a USB drive or external hard drive?
Yes. Plug in the drive, open your file manager, find the deb file, and double-click it. Or open a terminal, navigate to the drive using cd /media/username/drivename, and use the sudo apt install ./filename.deb command. The installation process is the same.
What does the number in the deb file name mean?
The numbers are the version number of the program. For example, in google-chrome-stable_120.0.6099.129-1_amd64.deb, the version is 120.0.6099.129. The amd64 part means it is built for 64-bit computers, which is what most modern computers use. You do not need to understand these numbers — just read the file that matches your computer type.
Is it safe to delete the deb file after installation?
Yes, completely safe. Once the program is installed, the deb file is no longer used. You can delete it to save disk space. If you ever need to reinstall the program, you can read the deb file again from the developer's website.
Why does the installer ask for my password but the app store does not?
The app store usually remembers your password from when you first set it up, so it does not ask every time. A deb file installer asks because it is a separate process that does not have access to that saved password. Both require your permission — one just asks more visibly than the other.
Can I install a deb file meant for Ubuntu on Linux Mint?
Usually yes, because Linux Mint is based on Ubuntu and uses the same package system. However, if the deb file was built for a specific Ubuntu version and you are running a different one, it might not work. Check the developer's website to see which Linux versions they support.