LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   YUM and RPM dose not do any thing! (https://www.linuxquestions.org/questions/red-hat-31/yum-and-rpm-dose-not-do-any-thing-4175429721/)

parian66 10-02-2012 07:15 AM

So how can i upgrade without yum and rpm command?
Quote:

Originally Posted by Ginola (Post 4794784)
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.


parian66 10-02-2012 07:25 AM

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 (Post 4794734)
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


Ginola 10-02-2012 07:27 AM

Quote:

Originally Posted by parian66 (Post 4794833)
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.... :)

parian66 10-02-2012 07:38 AM

Quote:

Originally Posted by Ginola (Post 4794848)
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?!!

Ginola 10-02-2012 08:04 AM

Quote:

Originally Posted by parian66 (Post 4794857)
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?

parian66 10-02-2012 08:14 AM

Quote:

Originally Posted by Ginola (Post 4794878)
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?

Ginola 10-02-2012 08:21 AM

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....

parian66 10-02-2012 08:38 AM

Quote:

Originally Posted by Ginola (Post 4794896)
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?

Ginola 10-02-2012 09:19 AM

Quote:

Originally Posted by parian66 (Post 4794911)
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?

parian66 10-02-2012 09:27 AM

Quote:

Originally Posted by Ginola (Post 4794948)
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

Ginola 10-02-2012 09:40 AM

Quote:

Originally Posted by parian66 (Post 4794956)
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?

parian66 10-02-2012 10:13 AM

Quote:

Originally Posted by Ginola (Post 4794969)
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:

Ginola 10-02-2012 10:21 AM

Quote:

Originally Posted by parian66 (Post 4795004)
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

parian66 10-02-2012 10:26 AM

Quote:

Originally Posted by Ginola (Post 4795009)
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

Ginola 10-03-2012 07:23 AM

Quote:

Originally Posted by parian66 (Post 4794886)
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..


All times are GMT -5. The time now is 08:34 AM.