dpkg vs apt
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 ? Regards |
Hi,
have you tried to install the package via dpkg? Just run "dpkg -i /path/to/package.deb". After that run "apt-get install -f" to resolve the dependencies. Regards, Simon |
|
If apt know it, dpkg know it and vice versa.
|
Quote:
|
Quote:
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. |
Yes, because the poster in the link is talking bollocks.
|
Oh!: alias bollocks=garbage ;) Try this web-search instead [of that link]: install deb package
|
Quote:
You can verify this with "apt list --installed" or "apt-cache show <package> | grep Status" |
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? |
Quote:
Code:
$ apt-cache policy clicompanion Code:
$ apt-rdepends clicompanion Use gdebi Code:
apt search gdebi Code:
$ inxi -S As far as upgrades go automagically. One needs a repository entry in /etc/apt/sources.list for that. |
We get google chrome from .deb and it updates itself most regularly.....
|
Quote:
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. https://help.ubuntu.com/community/AptGet/Howto https://help.ubuntu.com/lts/serverguide/dpkg.html |
Quote:
Code:
deb http://dl.google.com/linux/chrome/deb/ stable main |
Quote:
|
Quote:
A few package do that but, to my mind, it's almost worse that they do because they're altering a system file when all you want is a browser. Yes it's convenient but, to me at least, it almost seems sneaky -- I'd rather Google publish repositories as Oracle do for VirtualBox, for example. But that's just my opinion. |
Quote:
|
Opera also asks if you want to add their repository to your sources list when you download and install their .deb file.
At least that was so last time I tried Opera. Code:
deb http://deb.opera.com/opera/ stable non-free |
Quote:
|
All times are GMT -5. The time now is 06:07 PM. |