Results 1 to 6 of 6

Thread: Uninstall compiled applications

  1. #1

    Default Uninstall compiled applications

    I have managed to install a few applications by compiling them, now how do I delete them? Do I just have to delete their folder and shortcuts and that's it? Doesn't the application leave files in other system folders?
    OpenSUSE Leap 42.2 x64 KDE

  2. #2
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,048

    Default Re: Uninstall compiled applications

    On Wed, 14 Aug 2013 00:06:02 +0000, robertot5 wrote:

    > I have managed to install a few applications by compiling them, now how
    > do I delete them? Do I just have to delete their folder and shortcuts
    > and that's it? Doesn't the application leave files in other system
    > folders?


    Depends on the application - the README file will usually give uninstall
    instructions.

    Often times:

    make uninstall

    Will remove it.

    Jim
    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  3. #3
    Join Date
    Aug 2008
    Location
    Seattle, WA
    Posts
    1,376

    Default Re: Uninstall compiled applications

    Quote Originally Posted by robertot5 View Post
    I have managed to install a few applications by compiling them, now how do I delete them? Do I just have to delete their folder and shortcuts and that's it? Doesn't the application leave files in other system folders?
    Linux apps don't have a contained folder, as in Windows. Executables, shared libs, config files all are distributed to different directories shared with other applications. For example, a program executable will typically be in /usr/bin, while a library will be in /usr/lib or /usr/lib64. Manually deleting an application would be more problematic than on Windows. Not really a good way to go anyway, as it can break dependencies.

  4. #4

    Default Re: Uninstall compiled applications

    As suggested, make uninstall might do the trick. Sometimes though there is no uninstall target.

    Another method is to make packages when you compile applications, then install the package. You may then remove it as you would any other package, or run rpm -ql yourpackage to see the files and locations, etc.

    Two tools for this are checkinstall and fpm. Simply run checkinstall in the source directory and it will attempt to create and rpm. Hint: sometimes this fails. If so try running make install, and then checkinstall. Yes, this seems counter intuitive: you are installing a package over what you just installed, however you can then cleanly remove the package. (Sometime checkinstall chokes on missing directories, etc. which are created when you run make install. And it's just a bit finicky.)

    The other tool, fpm, is a bit more complicated to work with, but is worth checking out: https://github.com/jordansissel/fpm/wiki

  5. #5
    Join Date
    Mar 2009
    Location
    United States
    Posts
    612

    Default Re: Uninstall compiled applications

    It might depend on how much you want to learn. Personally I think learning how to make an rpm package correctly is easier than stressing over checkinstall.

    How to create an RPM package - FedoraProject

  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,979

    Default Re: Uninstall compiled applications

    And as an afterthought. Going for compiling a product yourself instead of using one from an "official" openSUSE repo already puts a burden onto you of checking and rechecking how save a product is. If it does in stall in proper places (some programmers have wild ideas about this) and if a proper deinstall is documentedand provided.

    Many product providers think that when it "works", that is all the matters. They forget documentation, correct (de)installation procedures, etc. It is you, the system manager, that stays responsible for what happens on the system.
    Henk van Velden

Posting Permissions

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