LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 06-13-2003, 09:52 AM   #1
Embeder
LQ Newbie
 
Registered: Jun 2003
Location: China
Distribution: RH9
Posts: 7

Rep: Reputation: 0
can RPM removing all packages I have install?


we know
rpm -e

can remove the package we have install in our system.

but after I removed some packages,and reboot my computer,then search the system,I see some files and some folders the about these packages still in my computer.

so I want to know if the command "rpm -e " can remove all the files and folders about the packages we just removed?and how can I clean all about it?


 
Old 06-13-2003, 10:25 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,543
Blog Entries: 54

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
Rpm can delete all files that where in the package. User-created files are AFAIK not removed. You could do a listing before removing and check if it's all gone. If this doesn't answer your question, give us an example of files that remain.
 
Old 06-13-2003, 11:16 AM   #3
Embeder
LQ Newbie
 
Registered: Jun 2003
Location: China
Distribution: RH9
Posts: 7

Original Poster
Rep: Reputation: 0
#rpm -ivh xmms-1.2.7-22.i386.rpm
#rpm -ivh xmms-mp3-1.2.7-22.i386.rpm
#rpm -e xmms-mp3
#rpm -e xmms
#reboot
#locate xmms>xmms_ls.txt

how can I clear all these list in xmms_ls.txt?
xmms_ls.txt:

/usr/bin/wmxmms
/usr/bin/xmms
/usr/lib/xmms
/usr/lib/xmms/Input
/usr/lib/xmms/Input/libcdaudio.so
/usr/lib/xmms/Input/libidcin.so
/usr/lib/xmms/Input/libmikmod.so
/usr/lib/xmms/Input/libtonegen.so
/usr/lib/xmms/Input/libvorbis.so
/usr/lib/xmms/Input/libwav.so
/usr/lib/xmms/Input/libmpg123.so
/usr/lib/xmms/Effect
/usr/lib/xmms/Effect/libstereo.so
/usr/lib/xmms/Effect/libecho.so
/usr/lib/xmms/Effect/libvoice.so
/usr/lib/xmms/General
/usr/lib/xmms/General/libsong_change.so
/usr/lib/xmms/General/libir.so
/usr/lib/xmms/General/libjoy.so
/usr/lib/xmms/General/liblyrics.so
/usr/lib/xmms/Output
/usr/lib/xmms/Output/libartsout.a
/usr/lib/xmms/Output/libOSS.so
/usr/lib/xmms/Output/libartsout.so.0.0.0
/usr/lib/xmms/Output/libartsout.so
/usr/lib/xmms/Output/libartsout.so.0
/usr/lib/xmms/Output/libdisk_writer.so
/usr/lib/xmms/Output/libesdout.so
/usr/lib/xmms/Visualization
/usr/lib/xmms/Visualization/libogl_spectrum.so
/usr/lib/xmms/Visualization/libbscope.so
/usr/lib/xmms/Visualization/libsanalyzer.so
/usr/lib/libxmms.so.1
/usr/lib/libxmms.so.1.2.1
/usr/share/doc/xmms-1.2.7
/usr/share/doc/xmms-1.2.7/ChangeLog
/usr/share/doc/xmms-1.2.7/AUTHORS
/usr/share/doc/xmms-1.2.7/COPYING
/usr/share/doc/xmms-1.2.7/INSTALL
/usr/share/doc/xmms-1.2.7/FAQ
/usr/share/doc/xmms-1.2.7/README.ESD
/usr/share/doc/xmms-1.2.7/NEWS
/usr/share/doc/xmms-1.2.7/README
/usr/share/doc/xmms-1.2.7/TODO
/usr/share/locale/ca/LC_MESSAGES/xmms.mo
/usr/share/locale/cs/LC_MESSAGES/xmms.mo
/usr/share/locale/da/LC_MESSAGES/xmms.mo
/usr/share/locale/de/LC_MESSAGES/xmms.mo
/usr/share/locale/el/LC_MESSAGES/xmms.mo
/usr/share/locale/es/LC_MESSAGES/xmms.mo
/usr/share/locale/fr/LC_MESSAGES/xmms.mo
/usr/share/locale/gl/LC_MESSAGES/xmms.mo
/usr/share/locale/hr/LC_MESSAGES/xmms.mo
/usr/share/locale/hu/LC_MESSAGES/xmms.mo
/usr/share/locale/it/LC_MESSAGES/xmms.mo
/usr/share/locale/ja/LC_MESSAGES/xmms.mo
/usr/share/locale/ko/LC_MESSAGES/xmms.mo
/usr/share/locale/nl/LC_MESSAGES/xmms.mo
/usr/share/locale/no/LC_MESSAGES/xmms.mo
/usr/share/locale/pl/LC_MESSAGES/xmms.mo
/usr/share/locale/pt_BR/LC_MESSAGES/xmms.mo
/usr/share/locale/sk/LC_MESSAGES/xmms.mo
/usr/share/locale/sv/LC_MESSAGES/xmms.mo
/usr/share/locale/tr/LC_MESSAGES/xmms.mo
/usr/share/locale/zh_TW/LC_MESSAGES/xmms.mo
/usr/share/locale/id/LC_MESSAGES/xmms.mo
/usr/share/locale/nn/LC_MESSAGES/xmms.mo
/usr/share/locale/pt/LC_MESSAGES/xmms.mo
/usr/share/locale/ro/LC_MESSAGES/xmms.mo
/usr/share/locale/ru/LC_MESSAGES/xmms.mo
/usr/share/locale/sr/LC_MESSAGES/xmms.mo
/usr/share/locale/uk/LC_MESSAGES/xmms.mo
/usr/share/locale/az/LC_MESSAGES/xmms.mo
/usr/share/locale/bg/LC_MESSAGES/xmms.mo
/usr/share/locale/eu/LC_MESSAGES/xmms.mo
/usr/share/locale/vi/LC_MESSAGES/xmms.mo
/usr/share/locale/wa/LC_MESSAGES/xmms.mo
/usr/share/locale/zh_CN.GB2312/LC_MESSAGES/xmms.mo
/usr/share/locale/eo/LC_MESSAGES/xmms.mo
/usr/share/locale/ga/LC_MESSAGES/xmms.mo
/usr/share/locale/lt/LC_MESSAGES/xmms.mo
/usr/share/locale/lv/LC_MESSAGES/xmms.mo
/usr/share/locale/th/LC_MESSAGES/xmms.mo
/usr/share/locale/af/LC_MESSAGES/xmms.mo
/usr/share/locale/tg/LC_MESSAGES/xmms.mo
/usr/share/pixmaps/mini/xmms_mini.xpm
/usr/share/pixmaps/xmms_logo.xpm
/usr/share/pixmaps/xmms.xpm
/usr/share/man/man1/wmxmms.1.gz
/usr/share/man/man1/xmms.1.gz
/usr/share/icons/Bluecurve/16x16/apps/xmms.png
/usr/share/icons/Bluecurve/32x32/apps/xmms.png
/usr/share/icons/Bluecurve/48x48/apps/xmms.png
/usr/share/icons/crystalsvg/16x16/apps/xmms.png
/usr/share/icons/crystalsvg/32x32/apps/xmms.png
/usr/share/xmms
/usr/share/xmms/Skins
/usr/share/xmms/Skins/Bluecurve-xmms.zip
/usr/share/xmms/wmxmms.xpm
/usr/X11R6/lib/xmms
/usr/X11R6/lib/xmms/General
 
Old 06-13-2003, 11:29 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,543
Blog Entries: 54

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
No, that isn't the way to go. First of all you don't need to reboot. You're not in MICROS~1 territory anymore :-] Secondly, if you want (s)locate to be reliable, you'll have to rebuild the database after you install/remove stuff. In this case it's easier to query the rpm database directly IMO.

If you have an installed rpm and you want to check the contents, do "rpm -ql <package>", and pipe that output to a log. Now deinstall and "cat <log> | xargs -ix find 'x'". If it *then* returns files you have to find out which package they came from: "rpm -qf /path/to/binary".
 
Old 06-13-2003, 11:37 AM   #5
Embeder
LQ Newbie
 
Registered: Jun 2003
Location: China
Distribution: RH9
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Install rpm packages in RedHat shahrokhnikou Linux - Software 1 07-28-2005 03:50 PM
how to install *.scr.rpm packages... IAnCool Linux - Newbie 5 03-06-2005 02:48 AM
How do I install .rpm packages using RH9? ScottyKUtah Linux - Newbie 3 08-08-2004 09:09 AM
RPM 'failed dependencies': Why can I not install any rpm packages? leontini Linux - Newbie 7 09-16-2003 01:44 AM
How to install rpm packages recursively? concoran Linux - General 4 12-20-2001 10:42 AM


All times are GMT -5. The time now is 12:38 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration