LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   want to uninstall tar file from server (https://www.linuxquestions.org/questions/linux-newbie-8/want-to-uninstall-tar-file-from-server-598093/)

shipon_97 11-08-2007 11:59 AM

want to uninstall tar file from server
 
hi friends ,

I have to install the 'tar' file in follwing way :

tar -zxvf blacklists.tar

Now I m going to uninstall all realted files from the Linux server . Plz tell me what is the command to uninstall it ?

knockout_artist 11-08-2007 12:09 PM

I think You uninstall(rather delete) it manually.
These commands would come handy

#find / -name name_of_ur_program
#whereis name_of_ur_program
#which name_of_ur_program
#locate name_of_ur_program

not sure but
rmp -qa | grep name_of_ur_program

And then
rm -f (for removing directories, i think)

ilikejam 11-08-2007 01:11 PM

Hi.

Something like:
Code:

tar tvf blacklists.tar | xargs rm
should do it. The blacklists .tar file will have to be in the same place as when you extracted it, though. Be careful - probably best to run 'tar tvf blacklists.tar' first to make sure it'll remove the files you want to remove.

Dave


All times are GMT -5. The time now is 06:14 PM.