Find the answer to your Linux question:
Results 1 to 4 of 4
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 ...
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,638

    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?
    "I used to be with it, then they changed what it was.
    Now what was it isn't it, and what is it is weird and scary to me.
    It'll happen to you too."

    Grandpa Simpson



    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,638
    Thanks. I knew it would be easy but I didn't expect it to be that easy
    "I used to be with it, then they changed what it was.
    Now what was it isn't it, and what is it is weird and scary to me.
    It'll happen to you too."

    Grandpa Simpson



    The Fifth Continent

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Nov 2009
    Location
    Sweden
    Posts
    41
    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
  •