Re: test for package dependencies without installing
I've found this little script around something
I've heared about recently; it's a command dedicated
to check dependencies.
I don't know it it can be of some use.
It's been hard to make it work (that's the bad part :) ).
$ export LANG=C; 2>/dev/null apt-cache show $(dpkg-query -l "*"|grep "ii"|cut -d' ' -f3) $(dpkg-query -l "tetex-bin"|cut -d' ' -f3)|2>/dev/null edos-debcheck -failures tetex-bin; 2>/dev/null apt-cache show $(dpkg-query -l "*"|grep "ii"|cut -d' ' -f3) $(dpkg-query -l "tetex-bin"|cut -d' ' -f3)|2>/dev/null edos-debcheck -explain tetex-bin
tetex-bin (= 2007.dfsg.1-5): FAILED
tetex-bin (= 2007.dfsg.1-5): FAILED
The following constraints cannot be satisfied:
tetex-bin (= 2007.dfsg.1-5) depends on texlive (>= 2007-11) {NOT AVAILABLE}
It is supposed to be fast at it (and probably other good properties).
$ apt-cache show $(dpkg-query -l "*"|grep "ii"|cut -d' ' -f3) $(dpkg-query -l "tetex-bin"|cut -d' ' -f3)
The already installed packages, plus, the packages I want to install.
If ever could be of some use.
(man edos-debcheck)
Ink Bottle
--- On Mon, 2/16/09, Paul Yeatman <pyeatman@ucsd.edu> wrote:
> From: Paul Yeatman <pyeatman@ucsd.edu>
> Subject: Re: test for package dependencies without installing
> To: "Chris Burkhardt" <chris@mretc.net>
> Cc: debian-user@lists.debian.org
> Date: Monday, February 16, 2009, 9:08 PM
> ->>In response to your message<<-
> --received from Chris Burkhardt--
> >
> > Paul Yeatman wrote:
> > [...]
> > >> There is a note in the man page about putting
> the --no-act flag before the action:
> > >>
> > >> $ sudo dpkg --no-act -i
> texlive-base_2007.dfsg.1-2_all.deb
> > >>
> > >> Does that make it behave as expected?
> > >
> > > I wish but sadly no:
> > >
> > > $ sudo dpkg --no-act -i
> texlive-base_2007.dfsg.1-2_all.deb
> > > Selecting previously deselected package
> texlive-base.
> > > (Reading database ... 150341 files and
> directories currently installed.)
> > > Unpacking texlive-base (from
> texlive-base_2007.dfsg.1-2_all.deb) ...
> > > pyeatman@pyeatman:~$
> > >
> > > ...but I didn't catch that so thanks for
> pointing out!
> >
> > Hmm. Take a look at this bug (especially message #19):
> >
> <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=128560>
> >
> > I guess a workaround for your script is to parse the
> 'Depends:' line from
> > dpkg -I and test if each of those packages are
> installed.
> >
> > - Chris B
>
> Yes, I had considered this idea myself but, given that
> apt-get,
> aptitude, dpkg, etc. already perform this action, I wanted
> to tap into
> this and not reinvent the wheel. This doesn't seem
> possible at the
> time, however.
>
> Thanks again for the feedback and for pointing out the bug!
> Paul
>
>
> --
> To UNSUBSCRIBE, email to
> debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
Reply to: