5

On Gnome based systems you can install .deb files with gdebi instead of using the Ubuntu Software Center. What is the equivalent package on KDE using Kubuntu?

2 Answers2

4

I found the tool I was looking for it's called qapt-deb-installer

3

As a complementary answer in relation to other answers and comments:

  • Qapt Package Installer (qapt-deb-installer) is meant as similar to Gdebi, but, while it tells you when dependencies are missing, it doesn't list those missing dependencies.

enter image description here

On the other hand (like Gdebi) it tells you what supplementary dependencies are installed when executing a deb file.

enter image description here

  • Discover is similar in that it is able to install from deb files (unlike something like Synaptic or its KDE alternatives, Muon and Apper). But, just like qapt, it doesn't tell you what dependencies are missing, just says that they are so:

enter image description here

It does list the supplementary dependencies before installing them by clicking "Show dependencies..." before clicking "Install":

enter image description here


The only solution I have in order to see what dependencies are missing, if the case, is the one where, while the deb file is installed with apt in terminal (apt being the program that is run by Gdebi), the action is triggered with a GUI - namely Dolphin file manager - in two possible ways:

  • by associating the deb files with an "application" that would trigger our action, in fact just the desktop file ~/.local/share/applications/install-deb-terminal.desktop, created by us with the form
[Desktop Entry]
Name=APT in terminal
Comment=Install deb files in terminal with apt
Exec=konsole --hold -e sudo apt install %f
Icon=/usr/share/icons/breeze/mimetypes/22/application-x-deb.svg
Terminal=false
Type=Application
StartupNotify=true
Categories=System;

but that will be seen by the system as a new application that could be associated to the deb file-type

enter image description here

  • or, by just creating a new context menu in Dolphin for deb files, triggering the same action, with the file ~/.local/share/kservices5/ServiceMenus/install-deb.desktop of the form

[Desktop Entry]

Actions=install
Icon=dialog-information
MimeType=application/vnd.debian.binary-package
ServiceTypes=KonqPopupMenu/Plugin
Type=Service
X-KDE-Priority=TopLevel

[Desktop Action install] Exec=konsole --hold -e sudo apt install %f Icon=/usr/share/icons/breeze/mimetypes/22/application-x-deb.svg Name=Install with APT in terminal

enter image description here

I guess Dolphin qualifies as a GUI for our purpose. The rest is displayed in terminal - that is: missing dependencies, if the case,

enter image description here

or supplementary ones that need to be installed:

enter image description here

But we do not take any action in CLI ourselves, except entering the sudo password.

[Thanks to @DKBose I found this link where in a question I have presented this solution under a now dead account while I had the same username as now.]

cipricus
  • 4,066
  • 4
  • 47
  • 106