LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to remove a file or package (https://www.linuxquestions.org/questions/linux-general-1/how-to-remove-a-file-or-package-473283/)

wahaha 08-12-2006 12:43 PM

how to remove a file or package
 
halo....I wanna know how to remove a file or packages after installed it. If let say i installed ndiswrapper-1.3.tar.gz

May I know how to remove the whole files ??
Is that remove the file include remove binary ?

soggycornflake 08-12-2006 01:41 PM

This is entirely distro dependant, you don't mention what you're using.

However, *.tar.gz files are usually source. If you installed via './configure; make; make install' then you have no package management, so unless the Makefile has an uninstall target, you'll have to remove all the files manually.
It's best not to use make install directly, try checkinstall to build a package for your distro.

wahaha 08-12-2006 02:24 PM

currently i am using the fedora core 4, 2.6.11-1.1369_FC4.

What is the difference between got package management and no package management?

Is that can i remove a file or package by type rpm -evh <package> if this is not a
<package>.rpm ?

Or

rm <package> ??

Why it is not best to use make install directly??

Sorry that ask so many questions at same time.

gummybearx 08-12-2006 02:28 PM

usually if u built from source, cd to dir or source and make clean or something like that. you might have to be su tho....

maybe it is make clean-all.....depends on makefile

soggycornflake 08-12-2006 02:54 PM

Any package you install via rpm is under package management. That means that every file in that package is accounted for. You can remove a package with 'rpm -e <package>'. If you install via make install, then files are placed directly in the file system. You have no record of what package they belong to and you cannot uninstall that program easily. You might have to remove each file manually. This is the purpose of package management, to keep track of which files are in which package and provide a means to maintain/remove/upgrade those packages.

make clean is for removing object files and so forth in the source tree, it has nothing to do with files installed on the system.


All times are GMT -5. The time now is 04:59 AM.