Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello Guys
Does anyone knows how to install deb package in Ubuntu so that apt will know that package is installed (and the version) and will report it in apt --installed list ?
Are you Guys sure about this.
From the link (erik2282) above I see:
Now, when you download a .deb file manually, you are bypassing apt and will use dpkg -i packagename.deb to install it instead. This means that apt's database will not be updated and that the apt system will have no knowledge of the package you installed. In other words, apt-get upgrade will never update any manually installed packages.
Are you Guys sure about this.
From the link (erik2282) above I see:
Now, when you download a .deb file manually, you are bypassing apt and will use dpkg -i packagename.deb to install it instead. This means that apt's database will not be updated and that the apt system will have no knowledge of the package you installed. In other words, apt-get upgrade will never update any manually installed packages.
APT is a frontend for DPKG. APT manages repositories and resolves dependencies for you, while using DPKG to actually make the changes of installing/removing packages. Even when you manually use DPKG to install a package, APT will be aware of it.
You can verify this with "apt list --installed" or "apt-cache show <package> | grep Status"
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,585
Rep:
What are you trying to do here?
It is correct that if a .deb is installed without any repository it will not be upgraded by apt because apt works on repositories and not files (I simplify but in this situation I feel that's what it amounts to).
So, which package which is not in the Ubuntu repositories do you wish to install and what are your worries about updates?
Hello Guys
Does anyone knows how to install deb package in Ubuntu so that apt will know that package is installed (and the version) and will report it in apt --installed list ?
If I want a gui look see. I look in synaptic. If I wanna know what dependencies it used to install
Code:
$ apt-rdepends clicompanion
Reading package lists... Done
Building dependency tree
Reading state information... Done
clicompanion
Depends: gtk2-engines-pixbuf
Depends: python (<< 2.8)
Depends: python-gtk2
Depends: python-vte
Depends: sudo
<snip>
If I want to update it. I need to download the newer version and uninstall old version <just my way of doing it> and install newer version with dpkg -i command. If wanting a gui version of dpkg.
Use gdebi
Code:
apt search gdebi
Sorting... Done
Full Text Search... Done
gdebi/stable,now 0.9.5.5+nmu1 all [installed]
simple tool to view and install deb files - GNOME GUI
gdebi-core/stable,now 0.9.5.5+nmu1 all [installed]
simple tool to install deb files
gdebi-kde/stable 0.9.5.5+nmu1 all
simple tool to install deb files - KDE GUI
Now, when you download a .deb file manually, you are bypassing apt and will use dpkg -i packagename.deb to install it instead. This means that apt's database will not be updated and that the apt system will have no knowledge of the package you installed. In other words, apt-get upgrade will never update any manually installed packages.
Your understanding is not factual.
Take this real life example:
We "typically" get google chrome from .deb and it updates itself most regularly.
It has a sources entry and apt/dpkg knows all about it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.