hotlunch has asked for the wisdom of the Perl Monks concerning the following question:

Greetings Monks of Perl! I come seeking your great wisdom pertaining to a script I am writing to download and install an application and then clean up the install files afterwards. I have done battle with the great Perl and have successfully downloaded the file, but am at a complete loss as to how to tell Perl that I want to install the application within the .deb file. If it matters at all the application is the Steam client. Your time is greatly appreciated wise ones.
  • Comment on installing application from a deb file in perl script

Replies are listed 'Best First'.
Re: installing application from a deb file in perl script
by InfiniteSilence (Curate) on May 30, 2014 at 19:36 UTC
    `sudo dpkg -i DEB_PACKAGE`; #maybe?

    Celebrate Intellectual Diversity

      Gave it a shot, received this error:

      Useless use of a constant ("sudo dpkg -i steam.deb") in void context at ./steam.pl at line 13.

      Line 13 being where that particular code is of course.

        I get the same error when I try to use gdebi with the same style of code:

        'sudo gdebi steam.deb';