LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-26-2015, 08:28 AM   #1
usamamirza
LQ Newbie
 
Registered: Aug 2015
Posts: 2

Rep: Reputation: Disabled
rhel packages uninstallation logs


Hi

I need to uninstall some packages in RHEL 6 using rpm -e command. But there are some dependencies preventing them to uninstall.

I want to see the log files of all the uninstall and installation. Can anyone tell me where it is located?

Thanks in advance.
 
Old 08-26-2015, 08:32 AM   #2
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
/var/log/yum*

In the log directory look for anything yum.


Read it with cat, nano or vi or whatever you like as a text editor. If you have a gui installed there is a programme to see logs as well.

Last edited by ericson007; 08-26-2015 at 08:34 AM.
 
Old 08-26-2015, 08:37 AM   #3
usamamirza
LQ Newbie
 
Registered: Aug 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ericson007 View Post
/var/log/yum*

Hi Ericson thanks for the reply. I don't need the yum log. All I want to see the logs of those install nad uninstall files which were proceed through rpm command.

Actually I do want to check the Log that contains all the information about dependencies while trying to uninstall a package. Though I can see in terminal but just want to know where the log is created. Thanks
 
Old 08-26-2015, 09:19 AM   #4
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
Ok, I understand a bit better what you are after. I actually do not think there is officially such a log to tell you the truth. Maybe a script to run through the installed packages recursively running the rpm or yum command to check dependancies on the specific package would be the only way to go. I may be mistaken though.
 
Old 08-26-2015, 10:17 AM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
If you had used yum to install and uninstall, then there would be a log accessible by running "yum history pkg-info <name_of_package>" and "yum history info <transaction_number>". If you used rpm directly, then there is no such log.

Last edited by rknichols; 08-26-2015 at 10:19 AM.
 
Old 08-26-2015, 11:20 AM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
8 years ago redhat started using YUM
this was to solve the MANY MANY MANY MANY issues CAUSED!!! by "rpm"

rpm is still useful ,but 99.99 ( percent ) of the time "YUM" is what you want to use !!!

for a list of UNINSTALLED rpm packaged using rpm
you will have FIRST before uninstalling made a list

Code:
su -
rpm -qa > installedlist.txt
uninstall software
rerun the above command
Code:
su -
rpm -qa > installedlist1.txt
use "dif" to make a patch
-- diff is a cool tool

the difference in the two lists is the uninstalled software

yum keeps a HISTORY and is WAY BETTER to use

Last edited by John VV; 08-26-2015 at 11:25 AM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with the removepreview.sh script for bulk uninstallation of packages in Lucid Puppy 5.2.5 Atharv Patil Puppy 0 02-04-2012 01:29 PM
rhel uninstallation srinivasmmdl Linux - Newbie 1 09-08-2011 07:02 PM
init logs differently in RHEL 3 and RHEL 5 Jayasimha Linux - Enterprise 3 07-12-2008 06:23 AM
Uninstallation of the installed packages? wittyguysuku Linux - Newbie 3 08-24-2004 04:55 AM
Advanced Compiling and Uninstallation Of Packages From Source LinuxGeek Linux - Software 6 06-29-2002 09:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

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