Re: Install .deb package on Linux using mono

Brandon Perry <[email protected]> Thu, 22 Feb 2018 14:02:34 -0600
Newsgroups gmane.comp.gnome.mono.devel
Message-ID <[email protected]>
--===============7871094475748685843==
Content-Type: multipart/signed;
	boundary="Apple-Mail=_39CC7E88-FC65-463E-90A4-6C8A087BE3B6";
	protocol="application/pgp-signature";
	micalg=pgp-sha256


--Apple-Mail=_39CC7E88-FC65-463E-90A4-6C8A087BE3B6
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_9F6F49C3-30B4-492E-A1F3-DFD5CE96D6AB"


--Apple-Mail=_9F6F49C3-30B4-492E-A1F3-DFD5CE96D6AB
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8



> On Feb 22, 2018, at 9:40 AM, nikhil sehgal <[email protected]> =
wrote:
>=20
> thanks for reply ...but i want to do it programatically through C# and =
mono framework

dpkg is a utility that consumes libdpkg. You could easily integrate =
directly with libdpkg with P/Invoke, but I don=E2=80=99t believe the =
dpkg API is considered particularly stable. YMMV

>=20
> On Thu, Feb 22, 2018 at 8:08 PM, Joseph Shields <[email protected] =
<mailto:[email protected]>> wrote:
> One at a time, just shell out to `dpkg -i` (although you=E2=80=99ll =
need to account for needing root to do that). But that doesn=E2=80=99t =
really deal with dependency resolution - you can try shelling out to =
gdebi (which will install dependencies from repositories for =
command-line specified packages), or binding the resolver engine in =
aptitude
>=20
> > On Feb 22, 2018, at 8:07 AM, nikhil sehgal <[email protected] =
<mailto:[email protected]>> wrote:
> >
> > Hi All,
> >
> > How can i install .deb package programtically on Linux using mono =
framework.
> >
> > Regards
> > Nikhil
>=20
>=20
>=20
>=20
> --
> Thanks & Regards
> NIkhil Sehgal
> Mobile No 9711855929
> Email Id [email protected] <mailto:[email protected]>
> Skype ID sehgal.nikhil
> _______________________________________________
> Mono-devel-list mailing list
> [email protected] <mailto:[email protected]>
> http://lists.dot.net/mailman/listinfo/mono-devel-list =
<http://lists.dot.net/mailman/listinfo/mono-devel-list>

--Apple-Mail=_9F6F49C3-30B4-492E-A1F3-DFD5CE96D6AB
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><br =
class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D"">On Feb 22, 2018, at 9:40 AM, nikhil sehgal &lt;<a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" =
class=3D"">thanks for reply ...but i want to do it programatically =
through C# and mono framework</div></div></blockquote><div><br =
class=3D""></div><div>dpkg is a utility that consumes libdpkg. You could =
easily integrate directly with libdpkg with P/Invoke, but I don=E2=80=99t =
believe the dpkg API is considered particularly stable. YMMV</div><br =
class=3D""><blockquote type=3D"cite" class=3D""><div class=3D""><div =
class=3D"gmail_extra" style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;"><br class=3D""><div =
class=3D"gmail_quote">On Thu, Feb 22, 2018 at 8:08 PM, Joseph =
Shields<span class=3D"Apple-converted-space">&nbsp;</span><span =
dir=3D"ltr" class=3D"">&lt;<a href=3D"mailto:[email protected]" =
target=3D"_blank" class=3D"">[email protected]</a>&gt;</span><span =
class=3D"Apple-converted-space">&nbsp;</span>wrote:<br =
class=3D""><blockquote class=3D"gmail_quote" style=3D"margin: 0px 0px =
0px 0.8ex; border-left-width: 1px; border-left-style: solid; =
border-left-color: rgb(204, 204, 204); padding-left: 1ex;">One at a =
time, just shell out to `dpkg -i` (although you=E2=80=99ll need to =
account for needing root to do that). But that doesn=E2=80=99t really =
deal with dependency resolution - you can try shelling out to gdebi =
(which will install dependencies from repositories for command-line =
specified packages), or binding the resolver engine in aptitude<br =
class=3D""><div class=3D"HOEnZb"><div class=3D"h5"><br class=3D"">&gt; =
On Feb 22, 2018, at 8:07 AM, nikhil sehgal &lt;<a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt; wrote:<br class=3D"">&gt;<br =
class=3D"">&gt; Hi All,<br class=3D"">&gt;<br class=3D"">&gt; How can i =
install .deb package programtically on Linux using mono framework.<br =
class=3D"">&gt;<br class=3D"">&gt; Regards<br class=3D"">&gt; Nikhil<br =
class=3D""><br class=3D""></div></div></blockquote></div><br =
class=3D""><br clear=3D"all" class=3D""><div class=3D""><br =
class=3D""></div>--<span class=3D"Apple-converted-space">&nbsp;</span><br =
class=3D""><div class=3D"gmail_signature" =
data-smartmail=3D"gmail_signature"><div class=3D"">Thanks &amp; =
Regards</div><div class=3D"">NIkhil Sehgal</div><div class=3D"">Mobile =
No 9711855929</div><div class=3D"">Email Id<span =
class=3D"Apple-converted-space">&nbsp;</span><a =
href=3D"mailto:[email protected]" target=3D"_blank" =
class=3D"">[email protected]</a></div><div class=3D"">Skype ID =
sehgal.nikhil</div></div></div><span style=3D"font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant-caps: normal; =
font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: =
inline !important;" =
class=3D"">_______________________________________________</span><br =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" =
class=3D""><span style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; float: none; display: inline =
!important;" class=3D"">Mono-devel-list mailing list</span><br =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><a =
href=3D"mailto:[email protected]" style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; =
-webkit-text-stroke-width: 0px;" =
class=3D"">[email protected]</a><br style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><a =
href=3D"http://lists.dot.net/mailman/listinfo/mono-devel-list" =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" =
class=3D"">http://lists.dot.net/mailman/listinfo/mono-devel-list</a></div>=
</blockquote></div><br class=3D""></body></html>=

--Apple-Mail=_9F6F49C3-30B4-492E-A1F3-DFD5CE96D6AB--

--Apple-Mail=_39CC7E88-FC65-463E-90A4-6C8A087BE3B6
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEzPpVUyGNS+BQrQk1omrxWNVu3akFAlqPIdoACgkQomrxWNVu
3anyjQ//ciyce43V6bICfRfgcVkEYjW99F04sYNUlOfEyf2biqUcUPq+JgcCZwCD
F0MPnv7RZlVgnyxVbHDS3sITkUBfFg5i6ClBNvmjiY4wakFF6C+ZzZwFuZQQqW58
mP+g/D5eYigQoWK3qg1ffH09eslGi4rgeriYbLDddsliXqNQFKE/JyKrXfXQJR+G
cfgedpqcJ5/SYApvU+EF90n3iFWnTaX/jMC+HlN/u9YHMz/4uu0jKGpE1m1vVux7
31UFtLJvDfei3ahWvV4N5NODO3KccQWYkwMK31UZAWg0x5AeRpeNPtY+7fa1QxA+
iVFxhXF798oib+tAaGr3OU/ZhL2zZ4uulo02IPaXqca9ZheDrphAUgoCP0kF6YK3
R3KAlyfqz5sYpve2Icd5Jd+nwd9hS0v0WwboIML2GLMQAYex3WuvGmhcnH/bQCDK
KLFJRC/4hAql7NL/1WvhKfWkfM5Hi50WLM3hmPQ1IySkD07VrFGl3PTVWiANy0Oh
2jivlj20hR6vjXDYpEwPCePvTa9uAiO56OU07fMOqRlM68CEIgSv4c6x7VgQaLPJ
s3ILy6z8mNfM4Qy7euOduJgxMyqGx9Dl5Gqxzf4gdtm5H8r4/Pi7Fbo/KtV0QQUF
h47sQZu6XqIpo3FiimZHL1L3A0LsIJWv9B67kMLFrYeDi3otF7Y=
=lWSi
-----END PGP SIGNATURE-----

--Apple-Mail=_39CC7E88-FC65-463E-90A4-6C8A087BE3B6--

--===============7871094475748685843==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTW9uby1kZXZl
bC1saXN0IG1haWxpbmcgbGlzdApNb25vLWRldmVsLWxpc3RAbGlzdHMuZG90Lm5ldApodHRwOi8v
bGlzdHMuZG90Lm5ldC9tYWlsbWFuL2xpc3RpbmZvL21vbm8tZGV2ZWwtbGlzdAo=

--===============7871094475748685843==--