Re: dpkg -i from within postinst script
On Thu, Nov 13, 2008 at 09:55:09AM +0000, Anton Piatek wrote:
> I work for a company that uses a specific java build - we are only
> allowed to download it from a specific internal site, that is
> authenticated.
> I have written a package that downloads and builds it into a deb
> (using make-jpkg + extra definitions) as part of the postinst script.
> I would like it to install the package too, however everything i have
> tried doesnt work
A package does not install other packagees. The package manager does that.
Does your package depends on another package to be installed? Sounds like
either Depends or Pre-Depends.
http://www.debian.org/doc/manuals/maint-guide/ch-dreq.en.html#s-control
http://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps
And an off-topic comment:
> Short of adding a cronjob that tries to install it, and deletes itself
> when done,
Not that it's the right solution, but this type of one-shot is best done
with atd rather than with cron.
--
Tzafrir Cohen | tzafrir@jabber.org | VIM is
http://tzafrir.org.il | | a Mutt's
tzafrir@cohens.org.il | | best
ICQ# 16849754 | | friend
Reply to: