LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-25-2008, 04:12 PM   #1
anadem
LQ Newbie
 
Registered: Sep 2008
Posts: 16

Rep: Reputation: 0
removing libstdc (to check RPM dependencies)


Will
Code:
yum remove compat-libstdc++-33
undo what
Code:
yum install compat-libstdc++-33
did?

Explanation: I'm working on making an RPM package. Thanks to help from here it's basically working now. However I did a test install and got the message:
Code:
error: Failed dependencies:
    libstdc++.so.5 is needed by mypkg
    libstdc++.so.5(CXXABI_1.2) is needed by mypkg
    libstdc++.so.5(GLIBCPP_3.2) is needed by mypkg
So I installed the libs:
Code:
yum install compat-libstdc++-33
OK, all went fine, but now (in theory) the product no longer requires those libraries. So I want to test the rpm install again without those libraries installed. Will "yum remove blah" undo "yum install blah" or may there be bits left behind after the remove?

That is, do I need to re-image my machine to get back to a state of not having the libstdc++.so.5 installed?

Thanks

Last edited by anadem; 11-25-2008 at 04:29 PM.
 
Old 11-25-2008, 04:46 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Yes, the yum remove should work. But be careful. Sometime yum gets a little remove happy and decides to take half the system with it in order to remove one package. It will tell you what it (thinks) it has to remove along with the package you want to remove (just like it asks you when it installs extra dependencies). IF it decides to remove a bunch of extra stuff, tell it NO, and post back for other (more complex) removal methods.
 
Old 11-25-2008, 05:15 PM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Yes, yum asks confirmation before removing. If you see some additional package to be removed along with compat-libstdc++-33, just answer no. I don't think this is the case, anyway.
 
Old 11-25-2008, 05:40 PM   #4
anadem
LQ Newbie
 
Registered: Sep 2008
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks guys for the reassurance - I should have jumped in and not been so chicken! BUT

Code:
root@GP-D-227WS02 15:33 ~
# yum remove compat-libstdc++-33
Repository update already added, not adding again
Setting up Remove Process
No Packages marked for removal
root@GP-D-227WS02 15:33 ~
Any ideas what the secret sauce might be to "mark packages for removal" and have yum do what I need?

Thanks
 
Old 11-25-2008, 05:49 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Run a "yum info compat-libstdc++-33" and see what it has to say. Here is mine for comparison:

[fred@localhost ~]$ yum info compat-libstdc++-33
Loaded plugins: priorities, protect-packages, protectbase
0 packages excluded due to repository protections
Installed Packages
Name : compat-libstdc++-33
Arch : x86_64
Version : 3.2.3
Release : 62
Size : 806 k
Repo : installed
Summary : Compatibility standard C++ libraries
URL : http://gcc.gnu.org
License : GPL
Description: The compat-libstdc++ package contains compatibility standard C++
: library from GCC 3.3.4.

Available Packages
Name : compat-libstdc++-33
Arch : i386
Version : 3.2.3
Release : 62
Size : 230 k
Repo : fedora
Summary : Compatibility standard C++ libraries
URL : http://gcc.gnu.org
License : GPL
Description: The compat-libstdc++ package contains compatibility standard C++
: library from GCC 3.3.4.

[fred@localhost ~]$

As you can see, it lists one installed and one available from the repo. Hopefully yours will not list one as being installed.
 
Old 11-25-2008, 06:13 PM   #6
anadem
LQ Newbie
 
Registered: Sep 2008
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks! That's strange, though! if I'm reading right, yum says libstdc++-33 is not installed now:

Reading repository metadata in from local files
base : ################################################## 1600/1600
update : ################################################## 209/209
Available Packages
Name : compat-libstdc++-33
Arch : i386
Version: 3.2.3
Release: 47.3
Size : 226 k
Repo : base
Summary: Compatibility standard C++ libraries

Name : compat-libstdc++-33
Arch : x86_64
Version: 3.2.3
Release: 47.3
Size : 224 k
Repo : base
Summary: Compatibility standard C++ libraries

I just checked history, and I definitely did "yum install" last week.

OOPS. DUH! History shows I also did "yum remove" last week. I can't believe how stupid I can be sometimes. AARRGH!

Many thanks for the help!
 
Old 11-25-2008, 06:37 PM   #7
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
If this is the stupidest mistake you make this week count yourself a hero. I drove all the way to Home Depot (holiday traffic already) just to realize I did not bring the part or part number I needed to get replaced. Lost well over an hour. In about the same time I probably could have walked there and back. It was the only reason for the trip.
 
  


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
How to check rpm dependencies? fsloke Linux - General 9 12-07-2011 11:35 AM
Slackware Kpackage rpm dependencies check Aigarzs Linux - Newbie 1 02-29-2008 12:08 PM
libstdc++ : circular dependencies? yekrahs Linux - Software 21 10-23-2005 10:57 AM
how to check rpm dependencies demmylls Linux - General 9 01-31-2005 12:14 PM
mismatched rpm versions of libstdc++ and libstdc++-devel pcweirdo Linux - Software 8 11-29-2004 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:03 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