[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: test for package dependencies without installing



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


Reply to: