Install Xvfb via yum - yum repository for Xvfb?

I am trying to install Xvfb on a RHEL 6.2 system using yum. However, all of the help that I've found says to type:

    yum install Xvfb

or...

    yum install xorg-x11-server-Xvfb

Which I'm sure would work if I had the correct repo configured, which I'm guessing I don't. Because I get the error:

    No package Xvfb available.

The only repos I have on this system are redhat.repo and rhel-source.repo. Which repo contains the Xvfb package?

Thanks!


Solution 1:

Umm, the package is called "xorg-x11-server-Xvfb" on CentOS5.

So you should be using the second option, "yum install xorg-x11-server-Xvfb". You can do "yum search xvfb" which gives you the proper name of the package, also.

Solution 2:

Enable the optional content repositories by editing /etc/yum.repos.d/redhat-rhui.repo .

Open the file search for optional - change enabled=0 to enabled=1

[rhui-REGION-rhel-server-optional]
name=Red Hat Enterprise Linux Server 7 Optional (RPMs)
mirrorlist=https://rhui2-cds01.REGION.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/7/$releasever/$basearch/optional/os

enabled=1

This should work.

Solution 3:

It's available on the Client, Workstation, and Server Optional Channels inside RHN: (Note the URLs here will prompt for your redhat support account)

https://rhn.redhat.com/network/software/packages/name_overview.pxt?package_name=xorg-x11-server-Xvfb&archIdList=&archLabelList=&search_subscribed_channels=yes

You'll need to configure the appropriate entitlement in order to use one of those channels with your system, of course.

You can search for packages at the following URL if you're not familiar with (or don't like) the Package Kit gui or the equivalent yum functionality:

https://rhn.redhat.com/rhn/channels/software/Search.do

cheers!

Solution 4:

Thanks for explaining the solution...for some reason the ftp link for me was malformed and so I was getting errors such as...

ftp://ftp.redhat.com/pub/redhat/rhel/beta/6Server/x86_64/os/repodata/repomd.xml:[Errno 14] PYCURL ERROR 9 - "Server denied you to change to the given directory"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-beta. Please verify its path and try again

Notice the "6Server" part, that directory doesn't exist or something is wrong with what I was doing.

Anyway, I ended up replacing $releasever for now with "6" ftp://ftp.redhat.com/pub/redhat/rhel/beta/6/x86_64/os/repodata/repomd.xml

and from what I can tell the "sudo yum install xorg-x11-server-Xvfb" install it fine