LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 10-02-2012, 07:15 AM   #31
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled

So how can i upgrade without yum and rpm command?
Quote:
Originally Posted by Ginola View Post
Since the yum.log suggests this was working a week ago, did you manage to clean the yum cache as a last action? The reason I ask is, it looks like ( from the strace log) that rpm never even gets to those dirs.

Yeah, I'd upgrade as suggested above.
 
Old 10-02-2012, 07:25 AM   #32
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
RPMforge installed

Yes.
I enabled "RPMForge" repository but after that i installed "dante" from that repository.
so the problem is not related to "rpmForge".

How can i upgrade to 6.3 without rpm and YUM?
another solution is to copy rpm and yum from a working instance of centOS tha is installed on a virtual machine. how can i do that? is it helpful?

Quote:
Originally Posted by John VV View Post
A question???

Why are you even trying to back up the rpm database when the program "rpm" is not working ??
if it is not working you can NOT update the rpm database

IF yum and rpm ever worked ( i do not know if they ever did )

if they DID in the past work then you did "something" most likely installed something that was VERY incompatible
( rpmforge and random rpms from the net can do this )

if they NEVER worked
something is VERY VERY WRONG with the install
and the TWO programs needed to fix it are NOT WORKING


i would reinstall with CentOS 6.3
seeing as you would have HAD to upgrade cent anyway , with 6.2 now past it's END OF LIFE

one thing you can try is this
but it is NOT going to fix it
Code:
strace rpm
you "should get a very long output
at the beginning though will be something that looks like this
Code:
execve("/bin/rpm", ["rpm"], [/* 97 vars */]) = 0
brk(0)                                  = 0x604000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x????c????000
if there is then it is installed but broken
 
Old 10-02-2012, 07:27 AM   #33
Ginola
Member
 
Registered: Sep 2012
Location: UK
Distribution: CentOS, RHEL
Posts: 56

Rep: Reputation: Disabled
Quote:
Originally Posted by parian66 View Post
So how can i upgrade without yum and rpm command?
Boot off the CD/DVD and choose the "Install or upgrade an existing system" option.

If the data is _REALLY_ important, back it up _JUST_IN_CASE_. But you knew that already....
 
Old 10-02-2012, 07:38 AM   #34
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ginola View Post
Boot off the CD/DVD and choose the "Install or upgrade an existing system" option.

If the data is _REALLY_ important, back it up _JUST_IN_CASE_. But you knew that already....
but the server is remote and in another country. is there any way to upgrade the OS without direct Access to the server?!!
 
Old 10-02-2012, 08:04 AM   #35
Ginola
Member
 
Registered: Sep 2012
Location: UK
Distribution: CentOS, RHEL
Posts: 56

Rep: Reputation: Disabled
Quote:
Originally Posted by parian66 View Post
but the server is remote and in another country. is there any way to upgrade the OS without direct Access to the server?!!
Do you have any type of console access to the box? Is it on commodity hardware?
 
Old 10-02-2012, 08:14 AM   #36
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ginola View Post
Do you have any type of console access to the box? Is it on commodity hardware?
We Have only SSH access to the server and a DRAC access to reset or power cycle the machine if the machine completely hangs.

How about copying all installed packages(included rpm and yum) from a working copy of CentOS?

Is this helpful?
 
Old 10-02-2012, 08:21 AM   #37
Ginola
Member
 
Registered: Sep 2012
Location: UK
Distribution: CentOS, RHEL
Posts: 56

Rep: Reputation: Disabled
wait a second. is this an SELINUX issue? did you make any changes in the last 7 days?
Does /etc/selinux/config have the following?

Quote:
SELINUX=enforcing
Quick test to see if it is. Disable it, run rpm -qa, then re-enable it.

Quote:
echo 0 > /selinux/enforce
rpm -qa
echo 1 > /selinux/enforce
Let me know how you get on....
 
Old 10-02-2012, 08:38 AM   #38
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ginola View Post
wait a second. is this an SELINUX issue? did you make any changes in the last 7 days?
Does /etc/selinux/config have the following?



Quick test to see if it is. Disable it, run rpm -qa, then re-enable it.



Let me know how you get on....
yes we have made some changes in last week.

the content /etc/selinux/config of is :

Code:
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#	enforcing - SELinux security policy is enforced.
#	permissive - SELinux prints warnings instead of enforcing.
#	disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
#	targeted - Only targeted network daemons are protected.
#	strict - Full SELinux protection.
SELINUXTYPE=targeted
so SELINUX is disabled!
what is recommended value? disabled or enforcing?
 
Old 10-02-2012, 09:19 AM   #39
Ginola
Member
 
Registered: Sep 2012
Location: UK
Distribution: CentOS, RHEL
Posts: 56

Rep: Reputation: Disabled
Quote:
Originally Posted by parian66 View Post
yes we have made some changes in last week.

the content /etc/selinux/config of is :

Code:
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#	enforcing - SELinux security policy is enforced.
#	permissive - SELinux prints warnings instead of enforcing.
#	disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
#	targeted - Only targeted network daemons are protected.
#	strict - Full SELinux protection.
SELINUXTYPE=targeted
so SELINUX is disabled!
what is recommended value? disabled or enforcing?


Selinux recommendations is a different conversation... What changes? Anything network related?
 
Old 10-02-2012, 09:27 AM   #40
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ginola View Post
Selinux recommendations is a different conversation... What changes? Anything network related?
NO. only some repositories and some packages installed on server. We have no problem with network.we can download files with "wget". so no Network problem.

CHANGES:
"RPMForge" enabled.
"Dante" socks server installed From RPMForge.
and "./configure" command runned from Dante.tar.gz

and after that no yum or rpm
 
Old 10-02-2012, 09:40 AM   #41
Ginola
Member
 
Registered: Sep 2012
Location: UK
Distribution: CentOS, RHEL
Posts: 56

Rep: Reputation: Disabled
Quote:
Originally Posted by parian66 View Post
NO. only some repositories and some packages installed on server. We have no problem with network.we can download files with "wget". so no Network problem.

CHANGES:
"RPMForge" enabled.
"Dante" socks server installed From RPMForge.
and "./configure" command runned from Dante.tar.gz

and after that no yum or rpm
Can you disable the dante proxy, and associated tunnels, then try rpm -qa?
 
Old 10-02-2012, 10:13 AM   #42
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ginola View Post
Can you disable the dante proxy, and associated tunnels, then try rpm -qa?
i think dante is not installed correctly, so i downloaded its Tar.GZ to download manually but the system has not "MAKE" installed. so i tried to install make command but i realized that yum install make is not working.

this is my "TOP" command output but there is no dante process running. also is saw "netstat" output without any dante listening on port:

Last edited by parian66; 10-02-2012 at 10:33 AM.
 
Old 10-02-2012, 10:21 AM   #43
Ginola
Member
 
Registered: Sep 2012
Location: UK
Distribution: CentOS, RHEL
Posts: 56

Rep: Reputation: Disabled
Quote:
Originally Posted by parian66 View Post
i think dante is not installed correctly, so i downloaded its Tar.GZ to download manually but the system has not "MAKE" installed. so i tried to install make command but i realized that yum install make is not working.

this is my "TOP" command output but there is no dante process running. also is saw "netstat" output without any dante listening on port:

Attachment 10839

Attachment 10840
Be careful about giving out connection information on an open forum....

what is the output of
Code:
ps -ef | grep sock
 
Old 10-02-2012, 10:26 AM   #44
parian66
LQ Newbie
 
Registered: Sep 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ginola View Post
Be careful about giving out connection information on an open forum....

what is the output of
Code:
ps -ef | grep sock
68 1439 1399 0 Sep28 ? 00:00:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
root 30536 30410 0 11:28 pts/0 00:00:00 grep sock
 
Old 10-03-2012, 07:23 AM   #45
Ginola
Member
 
Registered: Sep 2012
Location: UK
Distribution: CentOS, RHEL
Posts: 56

Rep: Reputation: Disabled
Quote:
Originally Posted by parian66 View Post
We Have only SSH access to the server and a DRAC access to reset or power cycle the machine if the machine completely hangs.

How about copying all installed packages(included rpm and yum) from a working copy of CentOS?

Is this helpful?
That might be an option. I think this is an RPM issue, and YUM is suffering due to it sitting ontop of rpm (rpm -q --requires yum-3.2.22-26.el5 shows rpm in the list) Before you do that, roll back the repos you put in, and try a yum rebuild.

Here is how you get the tarball from a _WORKING_ machine...

Quote:
tar cvf /tmp/rpm.tar `rpm -ql rpm-4.4.2.3-18.el5`
then move the /tmp/rpm.tar over to the problematic linux box and untar it..
 
  


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
yum remove rpm --> how to reinstall rpm npubudu Linux - Software 5 01-25-2007 08:08 AM
Why -bash: rpm: command not found??? Also an rpm/yum Q? vbtalent Debian 6 01-23-2006 04:55 PM
yum version yum-2.0.5-0.9.2.legacy.noarch.rpm master Red Hat 6 05-13-2005 03:03 PM
i need some help with this apt and yum thing amarillo Fedora 9 10-06-2004 12:04 AM
RPM Problem... What the hell is wrong with this thing? Darx Fedora 9 03-20-2004 12:09 AM


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

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