Extracting Dependencies of a deb package which is not a part of DPKG system
So I downloaded the opera browser deb file - opera_10.10.4742.gcc4.qt3_i386.deb. What I am trying to do is first find out what all packages does this deb file depends on and then install those packages first (using apt-get) and then finally install this deb file (using dpkg -i opera_10.10.4742.gcc4.qt3_i386.deb). Now on giving the command: dpkg --info opera_10.10.4742.gcc4.qt3_i386.deb | grep Depends[ I get the following output: Depends: libc6 (= 2.1.3), xlib6g (= 3.3.6) | xlibs | libxmu6, debconf (= 0.5) | debconf-2.0, libqt3-mt (= 3.3.4), libstdc++6 Now my question is what is the best way I can extract/list just the names of the above packages (using awk, sed?) so that I feed the list to apt-get to first install them and then run dpkg -i opera* I know an apt-get -f install after the first attempt to install it would take care of this but I am trying to automate this installation process through a script also keeping in mind that the dependencies of opera package might change in the future. Alternatively, if anyone can suggest a better method on how to achieve that would be great. Thanks, Tech Geek
Re: Extracting Dependencies of a deb package which is not a part of DPKG system
On Tue, 2010-03-16 at 12:24 -0700, Tech Geek wrote: So I downloaded the opera browser deb file - opera_10.10.4742.gcc4.qt3_i386.deb. What I am trying to do is first find out what all packages does this deb file depends on and then install those packages first (using apt-get) and then finally install this deb file (using dpkg -i opera_10.10.4742.gcc4.qt3_i386.deb). snip You could just add Opera's Debian repository to you sources.lst, then installing (and updating) Opera will work like any Debian package. See http://deb.opera.com/ -- Tixy () The ASCII Ribbon Campaign (www.asciiribbon.org) /\ Against HTML e-mail and proprietary attachments -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1268768352.4063.3.ca...@computer2.home
Re: Extracting Dependencies of a deb package which is not a part of DPKG system
On Tuesday 16 March 2010 20:24:53 Tech Geek wrote: Alternatively, if anyone can suggest a better method on how to achieve that would be great. gdebi does this: http://packages.debian.org/sid/gdebi PS: Opera has Debian repo: http://deb.opera.com/ Jens. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/201003162047.49085.jens.vanbroeckho...@telenet.be
Re: Extracting Dependencies of a deb package which is not a part of DPKG system
Tech Geek: So I downloaded the opera browser deb file - opera_10.10.4742.gcc4.qt3_i386.deb. What I am trying to do is first find out what all packages does this deb file depends on and then install those packages first (using apt-get) and then finally install this deb file (using dpkg -i opera_10.10.4742.gcc4.qt3_i386.deb). If it's just opera: why not try adding the correct entry to your sources.list? http://www.opera.com/support/kb/view/841/ J. -- Tony Blair is a hypnotised self-seeking scarecrow just like all the rest. [Agree] [Disagree] http://www.slowlydownward.com/NODATA/data_enter2.html signature.asc Description: Digital signature
Re: Extracting Dependencies of a deb package which is not a part of DPKG system
My bad...I didn't realize opera has a Debian repository..That should certainly solve the problem... Thanks for all your inputs...