I use Mint and I just double-click *.deb files to install them. Ubuntu does not do this?
This is deliberately not allowed in order to ensure that Linux remains exclusive for nerds.
Gnome-Software and GDebi can do exactly that for you. Download a deb, right click "open with X", and they'll install it for you using GUI. You can even change file associations so debs are opened by gdebi/gnome-software by simple double-clicking.
FWIW instead of dpkg -i stuff.deb
, you can use apt as such: apt install ./stuff.deb
(The path syntax like ./
is required to use a local file instead of searching for a package name).
Unlike dpkg, apt is able to fetch dependencies if needed.
Strange when I double click a .deb and or a .flatpakref file the gnome software application opens with the option to install that package. (Linux mint)
I much preferred the windows way, shocker, with just downloading and double-click the exe file.
This is appimage!
Om, AppImage is portable exe. Has it's uses.
the monkey's paw curls a finger and your wish is granted
you can now right click and select install. But it doesn't actually install properly.
It doesn't check dependencies.
You have 356 different copies of libcurl installed on your system.
Nginx, Apache and Lighttpd are all running in the background and collectively using the same port, somehow.
Wayland and X are both running with multiple sessions but none of them are on the default TTY.
dpkg doesn't? I sometimes use apt install command but didn't think it mattered if the deb package was configured right.
It's an embellishment on the above monkey's paw comment, not actual technical information.
When I was on popos I would just double click deb files and eddy would open and install
"popos" is german for "butts", PopOS! is a bit different
Eddy doesn't care which, he's installing
@RommieDroid It’s not there by default, but Gdebi can do the trick. I used it quite a lot when I first started with Linux.
That's awesome. Thank you.
@RommieDroid No problem. Many of us are here to help in the #linux community, though I wouldn’t say I’m the most advanced with it.
Is this really a common occurrence for you, that the package isn't available via apt?
Most end-user software is not in Debian/Ubuntu repos. Sublime Text, Discord, Anydesk, Google Earth, Ente Photos, Synergy, Steam, NordVPN... The list goes on. You download a Deb from their website.
On Debian it is. The stable branch is a pain. I need to switch to something else.
If it's only due to the branch, i.e. a package or desired version isn't available in stable
but is in testing
or unstable
, you may try using pinning.
Reading, thank you.
Ah, understandable.
May I talk to you about our lord and savio, NixOS? (Only kinda /s)
I'm open to conversion!
Nice!
How much do you know of nix? (Just gauging where I should start in my propaganda script :D)
Nothing, besides seeing the name on some memes.
I'm not a sysadmin and I want a computer that just works, to the extent that that's possible. I'll fix stuff that needs fixing, but ideally I don't need to do much. I'm not a customizer, so themes and rice and stuff go over my head. I don't have any real ideological bent - FOSS is lovely but if I need proprietary to get my ultrawide monitor working or whatever, I'll use it.
I like the KDE I'm using now (though I understand I'm a major version behind!) but am not afraid to try something else. I play games with Steam and Lutris, most of which work some of the time.
Well, NixOS is mostly for enthusiasts and it's very much the opposite of beginner friendly.
The idea is that you configure your system in a configuration file, then run a command that makes your system match exactly what you configured.
So instead of apt install
or similar you just add the package to your config, run a single command to rebuild the system and you're done.
Which also means you're mostly on your own, most guides for other distros don't work and the documentation on how to do the things in NixOS are very incomplete. It's nice and fun, but definitely not for an average user.
I really don't understand why it's not more streamlined, it should work like an exe where I just click it and it installs and handles dependencies automatically.
Installing a random .deb comes with enormous security implications. I am not sure that making the process more beginner friendly is a really good idea.
"Beginner friendly" should be limited to things from the main repositories, and for that there is the Software Center.
Not any more dangerous than installing a random exe. And a GUI that opens when you click one could explain that danger much better than what currently happens: people blindly use sudo dpkg and that's it.
What linux does and does not protect the user from is endlessly hilarious to me.
Hey linux, I want to install a file you downloaded.
Linux: Sounds risky man
I'd like my file explorer to have super user privleges.
Linux: Are you out of your god damned mind?
Hey linux, I want to delete the kernel that I'm actively using right now.
Linux: Hell yeah. I'll go to the looney bin with you.
That is fair, I suppose being able to click and run stuff like Appimages has less security issues because in theory they are isolated? But don't the appimages get to decide their own permissions?
It's not any more secure. The point that "installing random debs is insecure" has been running around for at least the last 16 years I've been a Linux user.
While it's technically true, AppImages are as secure as random debs. Same with random repositories that are not provided by your system. Same with flatpaks.
And unless you're an extremely basic user, you'll eventually have to install an application not in your repositories. The method doesn't really matter, it's all equally (in)secure.
It's the same thing with .exe on windows. It's potentially dangerous and people need to be mindful what they download and install.
@MangoPenguin @RommieDroid It’s more so that the people working on “beginner friendly” Linux distros are pushing users towards Software Centers/App stores these days.
Those of us who are familiar with the old ways don’t really have much trouble, but there’s stuff that is a big pain, like #LibreOffice
Installing the latest version of that is easier to do in the terminal and can’t be done as conveniently as what you propose, though I wish it was that easy.
@bryceac @MangoPenguin @RommieDroid LibreOffice is certainly an exception. One deb, no problem, but a whole screen full of them? And just running dpkg -i may get you two instances depending on the update? I finally went for flatpak on this one.
@demerara @MangoPenguin @RommieDroid I just try to find the current way to uninstall the preloaded version and then run dpkg -i *.deb in the extracted directory for the latest, but I can kind of see how that can be possible.
I'm not so sure about those beginner-friendly distros, they seem a little doggy and miss out on the massive work that the Debian and Ubuntu teams do that a smaller team can not. Snap is good for small, one time use or untrusted apps. But most of the time, its performance is really slow. It needs some work.
@RommieDroid Most of them are based on Ubuntu, such as Mint and the stagnated Pop! OS.
I can’t say what they are all like, but Ubuntu and its family are all the ones adopting a software center/App store these days.
In the past, I remember using Synaptic for searching for software, which was just a GUI front end for APT.
I’ve been using Nala lately in my VMs though.
Just add your own context menu shortcut for .deb files that runs sudo deb -i $_
Wait, for real? Gen Alpha doesn't know what a file type is??
fr, windows hides the file type by default.
Windows has done this since I was a kid (I'm a millennial). Later gens have no excuse.
Not quite what you want, but in dolphin you can open a terminal with F4, and then just type sudo deb -i <package.deb>
and your password. Pretty quick.
It's a useful shortcut.
Typing all that is still way much more work than just 2 clicks. Besides, OP specifically asked for an alternative without opening the terminal
That's a bad idea because you have no clue if any random .deb file is actually compatible with your system or not (a .deb intended for use on Debian Bookworm will not necessarily work on Ubuntu 25.04, or vice-versa, for example). And that's on top of the security issues and lack of dependency resolution that others have mentioned already. If you're new enough to Linux that you don't feel comfortable with the terminal, you should not be trying to install things via .deb file to begin with.
Doesn't apt
(not apt-get
), unlike dpkg
, perform a dependency resolution before installing a downloaded deb package?
Linux
A community for everything relating to the GNU/Linux operating system
Also check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP