Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I installed a package ( webmin ) that is compiled from a source program , I would like to remove this package now , if I can't find make uninstall from source program , how can I remove it ? thx
I installed a package ( webmin ) that is compiled from a source program , I would like to remove this package now , if I can't find make uninstall from source program , how can I remove it ? thx
The command in above link works only if you still have the configured source directory yet.
You probably need to remove the installed bits manually. The most important are usually found in /usr/local/bin. If you download the source code again and repeat the compilation problem and look at what
Code:
make install
does then you can probably get the remaining files.
cheers,
jdk
I tried to download the source program and use make uninstall , it not work, use configure , then use make uninstall is also not work , tried make clean not work , what I should try now ? thx
# make uninstall
make: *** No rule to make target `uninstall'. Stop.
ust, you have to do the same installation you did the first time: ./configure, make, make install, using the same installation path if you specified --prefix as option to configure. In this way the make install process will simply overwrite the existing files. In case there is not a "uninstall" target in the Makefile, you can run the make install step saving the output to a file:
Code:
# make install 2>&1 | tee install.log
then read this file line by line and remove the installed files one by one.
ust, you have to do the same installation you did the first time: ./configure, make, make install, using the same installation path if you specified --prefix as option to configure. In this way the make install process will simply overwrite the existing files. In case there is not a "uninstall" target in the Makefile, you can run the make install step saving the output to a file:
Code:
# make install 2>&1 | tee install.log
then read this file line by line and remove the installed files one by one.
Those are not installed files, but temporary object files created from the compilation step (make). Usually you have to do make clean, to remove them, but since you want to completely remove webmin from your system, once you have finished to uninstall it, you can remove the source directory.
In summary, read the install.log from the end to the beginning and try to reverse every action taken from make install (be it to copy/install a file, create a directory, make a link and so on). Then remove the source directory. That's it.
Those are not installed files, but temporary object files created from the compilation step (make). Usually you have to do make clean, to remove them, but since you want to completely remove webmin from your system, once you have finished to uninstall it, you can remove the source directory.
In summary, read the install.log from the end to the beginning and try to reverse every action taken from make install (be it to copy/install a file, create a directory, make a link and so on). Then remove the source directory. That's it.
thx reply ,
what I need to do is ,
1. remove all files / directories when the installation process ( rm -rf ./path )
2. make clean ( to remove the library )
3. remove the source directory .
Some programs don't provide make uninstall command.
You can build and install it and from installation log you can make out where in the file system the program installs itself. Then you can delete the files.
It's better to use a package manager or
while installing it give few options to configure
e.g.
./configure --prefix=/opt/package-name
This would install all of the program files to the /opt/package-name directory. Then if want to uninstall it just delete package-name directory.
And ofcourse you need to put the package-name/bin directory to path for easy accessing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.