LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-07-2012, 05:31 PM   #1
jmunjr
LQ Newbie
 
Registered: Jul 2011
Posts: 10

Rep: Reputation: Disabled
I used yum to try to remove a package and it started removing everything..


I run Centos 5.7 64 bit and I needed to install pcre so I did:

"yum install pcre"

and it installed the 32 bit version - pcre.i386.

Well I wanted the 64 bit so I went to remove the previous so I did what made sense:

"yum remove pcre"

All of a sudden yum went bonkers and started making all sorts of packages "set to be erased"

By the time I looked up it showed this:

Transaction Summary
==============================================================================================Remove 438 Package(s)
Reinstall 0 Package(s)
Downgrade 0 Package(s)

Downloading Packages:
Running rpm_check_debug
Running Transaction Test

I interrupted it after 3-5 seconds or so of the "Running Transaction Test"

I then installed the 64 bit version via:

"yum install pcre.x86_64"

and it installed fine.

I don't believe anything was actually removed but I am not sure. My version of yum does not support the "history" function.

Anyone have any thoughts about this? Why would it install a package using "pcre" but then remove a whole bunch of stuff when removing "pcre". I understand that was a mistake and I should have entered the package name specifically, but holy cow that scared the crap out of me and I am still worried.

Any insight is appreciated.
 
Old 02-08-2012, 02:05 AM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
Ordinarily, yum will ask for confirmation after the "transaction check" but before removing any packages.
 
Old 02-08-2012, 03:14 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Ref. post #2 : That's right, only # yum -y remove pcre
.. will remove pcre and and packages depending on pcre.

# yum remove pcre.i386 : Removes 3..7 packages. If you type y.
# yum remove pcre.x86_64 : Removes 910 packages. (y)

# yum remove pcre : Removes both versions, and 915 other packages.
(The above package counts are examples from one of my CentOS 5 installs.)

.
 
Old 02-10-2012, 06:25 PM   #4
jmunjr
LQ Newbie
 
Registered: Jul 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hmmm I just did a "yum update" on my home server and it prompted me with y/n to update some things.

I did the same on my main server in question here and it did not prompt me and just updated a few things... Why wouldn't it prompt for a y/n? This means it wouldn't have done such for remove. In the above experience it never got past the transaction check so I should be ok right? How do I turn on prompts? Is there a reason to not have them on? Thanks.
 
Old 02-10-2012, 06:26 PM   #5
jmunjr
LQ Newbie
 
Registered: Jul 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
Ugh ok I just looked at the yum config and it has in it:

assumeyes=1

Why would this be in there? I'm pretty pissed and worried now...
 
Old 02-10-2012, 07:41 PM   #6
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
I have never seen CentOS use assumeyes by default.
So somebody has set it that way, why is any body's guess.

IMHO disabling confirmation in a config file like that is a bad idea. If for some reason you did want to disable confirmation for a particular instance of the command, you can use "yum -y". If say you were running it from a script for some reason.
 
Old 02-10-2012, 08:18 PM   #7
jmunjr
LQ Newbie
 
Registered: Jul 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
I disabled it. I ran a test on another system and as long as you interrupt during "Running Transaction Test" you're ok. No packages get removed.
 
Old 12-21-2013, 08:12 PM   #8
walt0131
LQ Newbie
 
Registered: Dec 2013
Posts: 1

Rep: Reputation: Disabled
Same problem, didn't catch it

Hi All,

Unfortunately, I had the same problem and didn't catch it until after it had already removed some 300 packages. Now I'm stuck. Most BASH commands don't work, though I can still navigate. Python and Yum both seem to be non-functional. wget, curl, rpm, ftp aren't working. I'm logged in, but can't log in with a new terminal, all new connections are refused. Any recommendations on how to go about recovering remotely. Is this an OS reinstall situation? My web and database servers are still up and running, but I think any reboot would mean the end of it all. Any thoughtful feedback appreciated. I'm having sinking feelings... :-(

walt
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how can i remove a package that is a dependency without removing anything else gujedan Debian 4 03-20-2011 05:55 AM
remove a package along with its dependencies with yum digsecurity Linux - Newbie 4 08-13-2010 05:17 AM
LXer: Getting started with the yum package manager LXer Syndicated Linux News 0 03-11-2009 02:00 AM
package remove through yum ? LinuxLover Linux - Server 1 04-12-2008 05:29 AM
Remove dependencies when removing a package kushalkoolwal Debian 6 06-28-2007 02:53 PM

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

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