Uninstalling in Linux

This is a discussion on Uninstalling in Linux within the Tech Board forums, part of the Community Boards category; After some researching, the way I get it, if I do the following to install a program Code: ./configure make ...

  1. #1
    unleashed alphaoide's Avatar
    Join Date
    Sep 2003
    Posts
    696

    Uninstalling in Linux

    After some researching, the way I get it, if I do the following to install a program
    Code:
    ./configure
    make
    make install
    if the uninstall option in Makefile is not available, then I can't uninstall the program with
    Code:
    make uninstall
    Right???

    So, tell me how would I remove this php installation 'cause I need to start over?

    When I do make uninstall it gives
    Code:
    make: *** No rule to make target 'uninstall'. Stop.
    source: compsci textbooks, cboard.cprogramming.com, world wide web, common sense

  2. #2
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    did you try the readme?

    it's kind of application specific...you could just delete the folder and remove the references to php from your http.conf (if you're using apache that is).
    PHP and XML
    Let's talk about SAX

  3. #3
    unleashed alphaoide's Avatar
    Join Date
    Sep 2003
    Posts
    696
    There's no readme for uninstalling.
    I did whereis php and it returns
    Code:
    php:  /usr/local/bin/php  /usr/local/lib/php /usr/local/lib/php.ini
    Do I just delete those?

    I know how to remove php's reference in http.conf
    source: compsci textbooks, cboard.cprogramming.com, world wide web, common sense

  4. #4
    Registered User Scribbler's Avatar
    Join Date
    Sep 2004
    Location
    Aurora CO
    Posts
    266
    Since it's rare to find an uninstall option in a makefile, some people kludge the uninstall by re-installing the the package by compiling from the same source, running a make, then before installing ,build an .RPM package and install with that. Then use .RPM (or .deb or whatever package management system your distro uses) to remove the install.

    Here's a link to help walk you through it....http://www.linuxexposed.com/Articles...packages!.html

  5. #5
    unleashed alphaoide's Avatar
    Join Date
    Sep 2003
    Posts
    696
    Helpful stuff. Thnx a lot.
    source: compsci textbooks, cboard.cprogramming.com, world wide web, common sense

  6. #6
    Registered User
    Join Date
    Nov 2004
    Location
    Slovenia, Europe
    Posts
    115
    You can use another way:

    PHP's configure has a --prefix option, which you can use do centralize PHP files (ex. in /usr/php). So if you want to uninstall PHP you simply delete that directory and you're finished. But if you want to access PHP binary files from anywhere (not from /usr/php/bin) you'll have to update your path.

    Scribbler's solutions works the thing too
    [C++]
    IDE: DevC++ 4.9.9.2 (GCC 3.4.2)
    2nd compiler: g++ (GCC 3.4.3/4.0.0)
    3rd compiler: Borland 5.5
    [C#]
    IDE: Microsoft Visual C# Express 2005
    2nd IDE: SharpDevelop
    2nd compiler: csc in Command Prompt
    .NET Framework: 2.0
    [PHP]
    Core: 5.1.0 beta 3
    IDE: PHPEdit
    2nd IDE: Notepad
    Favourite extensions: exif,gd2,mysql
    Favourite PEAR packages: DB, XML_RSS, ID3
    Favourite databases: SQLite, MySQL

  7. #7
    unleashed alphaoide's Avatar
    Join Date
    Sep 2003
    Posts
    696
    Hmm, so if you specify the installation directory, *everything* will be installed installed into that directory? Is it guaranteed for any programs available out there?
    source: compsci textbooks, cboard.cprogramming.com, world wide web, common sense

  8. #8
    Registered User
    Join Date
    Nov 2004
    Location
    Slovenia, Europe
    Posts
    115
    As I tested, Apache and PHP...I'm not sure for other programs...
    [C++]
    IDE: DevC++ 4.9.9.2 (GCC 3.4.2)
    2nd compiler: g++ (GCC 3.4.3/4.0.0)
    3rd compiler: Borland 5.5
    [C#]
    IDE: Microsoft Visual C# Express 2005
    2nd IDE: SharpDevelop
    2nd compiler: csc in Command Prompt
    .NET Framework: 2.0
    [PHP]
    Core: 5.1.0 beta 3
    IDE: PHPEdit
    2nd IDE: Notepad
    Favourite extensions: exif,gd2,mysql
    Favourite PEAR packages: DB, XML_RSS, ID3
    Favourite databases: SQLite, MySQL

  9. #9
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    It will work for any program whos build/install scripts are generated using autotools. (ie> ./configure, make, make install)

    Your better off using a package manager such as "apt" or "yum" though.

  10. #10
    Registered User
    Join Date
    Nov 2004
    Location
    Slovenia, Europe
    Posts
    115
    Yes but packages often haven't got complete installation (ex. PHP hasn't got all extensions in package (APT, RPM, TGZ, ...))....
    [C++]
    IDE: DevC++ 4.9.9.2 (GCC 3.4.2)
    2nd compiler: g++ (GCC 3.4.3/4.0.0)
    3rd compiler: Borland 5.5
    [C#]
    IDE: Microsoft Visual C# Express 2005
    2nd IDE: SharpDevelop
    2nd compiler: csc in Command Prompt
    .NET Framework: 2.0
    [PHP]
    Core: 5.1.0 beta 3
    IDE: PHPEdit
    2nd IDE: Notepad
    Favourite extensions: exif,gd2,mysql
    Favourite PEAR packages: DB, XML_RSS, ID3
    Favourite databases: SQLite, MySQL

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Thinking of upgrading to linux...
    By Yarin in forum General Discussions
    Replies: 37
    Last Post: 07-24-2009, 11:40 AM
  2. Wireless Network Linux & C Testbed
    By james457 in forum Networking/Device Communication
    Replies: 3
    Last Post: 06-11-2009, 11:03 AM
  3. Dabbling with Linux.
    By Hunter2 in forum Tech Board
    Replies: 21
    Last Post: 04-21-2005, 04:17 PM
  4. installing linux for the first time
    By Micko in forum Tech Board
    Replies: 9
    Last Post: 12-06-2004, 04:15 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21