Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,907

    How to update software compiled from source?


    I am trying out Zenwalk Linux and so far love it. I have had to compile a couple of bits of software from source and don't know how I would update them when a new version comes out.

    The options are:

    1. Compile the new version and hope it overwrites the old one
    2. Uninstall the old version and compile the new.

    Option 2 feels safer but how do I uninstall a bit of software installed by compiling?
    Should you be sitting wondering,
    Which Batman is the best,
    There's only one true answer my friend,
    It's Adam Bloody West!


    The Fifth Continent

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Just as you have "make install", you should also have an option "make uninstall" or similar from the makefile.
    Debian GNU/Linux -- You know you want it.

  3. #3
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,907
    Thanks. I knew it would be easy but I didn't expect it to be that easy
    Should you be sitting wondering,
    Which Batman is the best,
    There's only one true answer my friend,
    It's Adam Bloody West!


    The Fifth Continent

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Nov 2009
    Location
    Sweden
    Posts
    47
    Unfortunately, it often isn't that easy...

    The best thing to do, is to build a package when you compile the software and install/upgrade using the package manager.
    In Slackware, you do it like this:
    ./configure
    make
    make install DESTDIR=/tmp/something
    cd /tmp/something
    makepkg packagename-version-arch-1.txz

    This probably works in Zenwalk too.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •