LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 11-30-2016, 08:59 AM   #1
doni
LQ Newbie
 
Registered: Mar 2006
Posts: 27

Rep: Reputation: 1
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
 
Old 11-30-2016, 10:07 AM   #2
sschirrxq
LQ Newbie
 
Registered: Oct 2015
Posts: 8

Rep: Reputation: Disabled
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
 
Old 11-30-2016, 10:51 AM   #3
erik2282
Member
 
Registered: May 2011
Location: TX
Distribution: mint,deb,centos
Posts: 818

Rep: Reputation: 228Reputation: 228Reputation: 228
http://askubuntu.com/questions/43190...-from-deb-file
 
Old 11-30-2016, 02:15 PM   #4
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 417

Rep: Reputation: 74
If apt know it, dpkg know it and vice versa.
 
Old 11-30-2016, 02:18 PM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by c0wb0y View Post
If apt know it, dpkg know it and vice versa.
Yes.
 
Old 12-01-2016, 03:34 AM   #6
doni
LQ Newbie
 
Registered: Mar 2006
Posts: 27

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by Habitual View Post
Yes.
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.
 
Old 12-01-2016, 04:05 AM   #7
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,766

Rep: Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577
Yes, because the poster in the link is talking bollocks.
 
Old 12-01-2016, 05:07 AM   #8
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 362Reputation: 362Reputation: 362Reputation: 362
Oh!: alias bollocks=garbage Try this web-search instead [of that link]: install deb package
 
Old 12-01-2016, 03:22 PM   #9
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,065
Blog Entries: 2

Rep: Reputation: 227Reputation: 227Reputation: 227
Quote:
Originally Posted by doni View Post
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"
 
Old 12-01-2016, 03:40 PM   #10
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,585

Rep: Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351
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?
 
Old 12-01-2016, 05:01 PM   #11
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 19
Posts: 6,292
Blog Entries: 21

Rep: Reputation: 3152Reputation: 3152Reputation: 3152Reputation: 3152Reputation: 3152Reputation: 3152Reputation: 3152Reputation: 3152Reputation: 3152Reputation: 3152Reputation: 3152
Quote:
Originally Posted by doni View Post
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
installed with dpkg -i

Code:
$ apt-cache policy clicompanion
clicompanion:
  Installed: 1.3-1
  Candidate: 1.3-1
  Version table:
 *** 1.3-1 0
        100 /var/lib/dpkg/status
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
I am not using Ubuntu. But

Code:
$ inxi -S
System:    Host: biker Kernel: 4.8.10-antix.1-686-smp-pae i686 (32 bit) Desktop: IceWM 1.3.8
           Distro: antiX-15-V_386-full Killah P 30 June 2015
Instead. I also could have used synaptic to install any downloaded .deb package. http://askubuntu.com/questions/17987...rough-synaptic

As far as upgrades go automagically. One needs a repository entry in /etc/apt/sources.list for that.

Last edited by rokytnji; 12-01-2016 at 05:07 PM.
 
Old 12-01-2016, 05:11 PM   #12
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
We get google chrome from .deb and it updates itself most regularly.....
 
Old 12-01-2016, 05:15 PM   #13
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by doni View Post
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.

https://help.ubuntu.com/community/AptGet/Howto
https://help.ubuntu.com/lts/serverguide/dpkg.html

Last edited by Habitual; 12-01-2016 at 05:27 PM. Reason: added typically
 
Old 12-01-2016, 05:23 PM   #14
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,065
Blog Entries: 2

Rep: Reputation: 227Reputation: 227Reputation: 227
Quote:
Originally Posted by Habitual View Post
We get google chrome from .deb and it updates itself most regularly.....
I get Chrome from:
Code:
deb http://dl.google.com/linux/chrome/deb/ stable main
 
Old 12-01-2016, 05:28 PM   #15
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by replica9000 View Post
I get Chrome from:
Code:
deb http://dl.google.com/linux/chrome/deb/ stable main
Edited for non-advanced Original user.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing apt and dpkg paths with apt.conf via $APT_CONFIG Can-ned Food Debian 0 10-27-2016 02:44 AM
APT/dpkg errors! /var/lib/dpkg/status bassclarinet Debian 16 12-01-2011 09:24 AM
[SOLVED] DPKG/apt-get broken - GLIBC_2.6 not found (required by dpkg) Alize Linux - Software 15 05-23-2011 04:25 AM
apt-get dpkg error 5%dpkg akhund_bilal Debian 15 02-10-2010 06:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration