LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-12-2006, 12:43 PM   #1
wahaha
Member
 
Registered: Jul 2006
Posts: 130

Rep: Reputation: 15
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 ?
 
Old 08-12-2006, 01:41 PM   #2
soggycornflake
Member
 
Registered: May 2006
Location: England
Distribution: Slackware 10.2, Slamd64
Posts: 249

Rep: Reputation: 31
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.
 
Old 08-12-2006, 02:24 PM   #3
wahaha
Member
 
Registered: Jul 2006
Posts: 130

Original Poster
Rep: Reputation: 15
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.
 
Old 08-12-2006, 02:28 PM   #4
gummybearx
Member
 
Registered: Jul 2006
Location: missouri, usa
Distribution: openSuSE 10.2, debian etch
Posts: 43

Rep: Reputation: 15
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
 
Old 08-12-2006, 02:54 PM   #5
soggycornflake
Member
 
Registered: May 2006
Location: England
Distribution: Slackware 10.2, Slamd64
Posts: 249

Rep: Reputation: 31
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove a package raysr SUSE / openSUSE 3 03-22-2006 10:47 AM
Remove package maurovezz Mandriva 3 07-04-2005 07:57 PM
how to remove a package abd_bela Debian 6 05-14-2005 12:01 PM
remove package spidna Debian 3 02-26-2005 06:26 PM
remove package jbzy3000 Fedora 1 02-14-2005 05:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration