dpkg --version

Joshua Judson Rosen jrosen at harvestai.com
Tue Oct 20 18:46:58 UTC 2015


On 2015-10-20 09:43, linuxcbon linuxcbon wrote:
> 
> On Tue, Oct 20, 2015 at 12:04 PM, Denys Vlasenko <vda.linux at googlemail.com
> <mailto:vda.linux at googlemail.com>> wrote:
> 
>     On Mon, Oct 19, 2015 at 2:33 AM, linuxcbon linuxcbon
>     <linuxcbon at gmail.com <mailto:linuxcbon at gmail.com>> wrote:
>     > Hello,
>     >
>     > can someone please add the option "--version" to dpkg in busybox ?
>     > (for example, to avoid error messages in the steam client).
> 
>     Do you want someone to install steam (what is it?),
>     do whatever it is necessary to generate the error message,
>     then experiment with adding a correct --version message
>     of dpkg to fix it?
> 
> 
> I would like that busybox dpkg has option "--version",  like in the "normal" dpkg.

I think what Denys means is: what do you need the output to be?

If what you're asking for is that "busybox dpkg --version" should
output something that can be parsed by Steam or another program,
we'd need to know what assumptions those program are making about
the format of the "dpkg --version" output.

Many of us are not familiar with Steam, or not familiar enough
to know what it expects to be able to do with the output from
"dpkg --version". Would it be sufficient to say something like:

	BusyBox v1.20.2 (Debian 1:1.20.0-7) multi-call binary.

?

Would it be sufficient to simply output nothing and exit
with `success' status?

You didn't give any indication what kind of output busybox
would need to produce to actually resolve your problem
with Steam (and whatever other programs you might be using
that try to use the output of "dpkg --version" in some way),
so how are we to know? :)

For all we know, the programs you're using expect "dpkg --version"
to output exactly this text:

	Debian `dpkg' package management program version 1.16.1.2 (amd64).
	This is free software; see the GNU General Public License version 2 or
	later for copying conditions. There is NO warranty.

Or they might expect exactly some other text.

-- 
"Don't be afraid to ask (λf.((λx.xx) (λr.f(rr))))."


More information about the busybox mailing list