Solved

YUM - view progress / Verbose option

Posted on 2010-09-14
3
3,177 Views
Last Modified: 2012-05-10
Hi Guys,

We run YUM 2.4.3 on Red Hat Enterprise Linux AS release 4.

I need to determine if YUM is able to make a connection to the redhat.com servers.

I've tried the following:

      yum -d 10 install screen
      Yum Version: 2.4.3
      COMMAND: yum -d 10
      Installroot: /
      Ext Commands:
         screen
      Setting up Install Process
      Setting up repositories


      Exiting on user cancel

But it just sits until I press Ctrl+C.

I've also tried to do:    yum check-update

But it seems to do nothing, until I press Ctrl+C to exit.

Is there a way to do a connectivity check to determine whether it's a network or firewall related problem?

      /etc/yum.conf
      [main]
      cachedir=/var/cache/yum
      debuglevel=2
      logfile=/var/log/yum.log
      pkgpolicy=newest
      installonlypkgs=kernel kernel-smp kernel-devel kernel-smp-devel kernel-largesmp kernel-largesmp-devel kernel-hugemem kernel-hugemem-devel
      distroverpkg=centos-release
      tolerant=1
      exactarch=1
      retries=20
      obsoletes=1
      gpgcheck=1
      plugins=1

Thank you.
0
Comment
Question by:m0nk3yza
3 Comments
 
LVL 6

Assisted Solution

by:collins23
collins23 earned 150 total points
ID: 33672057
you can try tcpdump -n -i eth0



(assuming eth0 is your interface connecting to the internet )

btw, does your internet traffic from this server need to pass through a proxy ? if so.. you may need to export the http_proxy variable for yum to work.

0
 
LVL 4

Assisted Solution

by:rajendraone
rajendraone earned 50 total points
ID: 33672720
First, did you try #yum clean all     ?
0
 
LVL 14

Accepted Solution

by:
Deepak Kosaraju earned 300 total points
ID: 33676938
Make sure your yum repository is setup correctly, is your version of Redhat registered copy to get updates from Redhat repository. If its not registered version of Redhat setup 3rd party repository as mentioned in the following URL.
http://dag.wieers.com/rpm/FAQ.php#B4

B2. How to configure to use RPMforge ?
It's very easy. Just install the latest rpmforge-release package for your distribution and architecture.

This will automatically install the configuration and GPG keys that are for safely installing RPMforge packages.

Please select the correct command from the following list:
Red Hat Enterprise Linux 4 / i386:
rpm -Uhv http://apt.sw.be/redhat/el4/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el4.rf.i386.rpm
Red Hat Enterprise Linux 4 / x86_64:
rpm -Uhv http://apt.sw.be/redhat/el4/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el4.rf.x86_64.rpm
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now