29
Jul
2008

Remotely applying IPCop patches from the command line

Tags: , ,     Categories: Comms, Software

IPCop has a built in (although sometimes broken) download/apply UI for patches / security updates. However, it is broken sometimes, and there are times where it’s easier do it over SSH (slow, or unreliable connectivity, for example). Having Googled a bit, there wasn’t an immediate or obvious solution, so I dug around in the CGI scripts to see how it’s done.

Firstly, download the patch using wget, for example:
wget http://prdownloads.sourceforge.net/ipcop/ipcop-1.4.21-update.i386.tgz.gpg?download

Then, move that patch as follows:
mv ipcop-1.4.21-update.i386.tgz.gpg /var/patches/patch.tgz.gpg

That destination file shouldn’t already exist, so if it does you may need to investigate why the previous patch wasn’t applied correctly.

Finally, apply the patch:
/usr/local/bin/installpackage --install

You’ll be prompted when the patch is applied. Reboot if the patch requires so.

 

7 Responses:
  1. Basic    Fri, 29th Aug, 2008    10:09 am   :

    wget: command not found

    ipcop-1.4.20 and i just want to update to 1.4.21.

    any suggestion?


  2. cgarvey    Fri, 29th Aug, 2008    3:47 pm   :

    You’ll find wget (and other handy utils) at .. http://www.ipadd.de/binary.html


  3. Jim Hicks    Fri, 2nd Oct, 2009    7:52 pm   :

    I am trying to get 1.4.20 upgraded to 1.4.21
    I downloaded the patch with wget and moved it to the correct directory then ran the install. Got these error messages:

    gpg: WARNING: unsafe permissions on homedir ‘/root/.gnupg’
    secmem usage: 1408/1408 bytes in 2/2 blocks of pool 1408/32768
    Public signature not found (who signed package?)!

    I don’t know anything about linux or unix, do you have any idea what the problem might be?

    Many thanks for your wisdom-


  4. cgarvey    Fri, 2nd Oct, 2009    9:29 pm   :

    I don’t know is the answer, I’m afraid!

    I assume you are running the command as root (not admin)? If so, I have 755 on .gnupg/ and 600 on all the files in it, if that helps. I also have the following contents…

    gpg.conf
    pubring.gpg
    secring.gpg
    trustdb.gpg

    … with pubring and trustdb being non-empty.


  5. Jim Hicks    Sat, 3rd Oct, 2009    4:16 pm   :

    yes, I was logged in as root, and my .gnupg directory appears to look just like yours.
    I guess I will try again, do some more head scratching and searching.


  6. Jim Hicks    Sat, 3rd Oct, 2009    5:15 pm   :

    Eureka! Still got some error msgs but it apparently has worked on the second try….


  7. B Knotts    Mon, 7th Dec, 2009    1:28 am   :

    This was helpful, and hopefully may come in handy to others who find themselves with an ipcop which is not displaying parts of the web interface.

    I reinstalled the 1.4.21 patch using this method and it fixed the interface, which was missing much of its text.


 

Leave a Reply

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.