Saturday, July 28, 2007

missing portmap reinstall howto

I received an email asking me any hint on how to re install his missing portmap services. He accidentally uninstalled and press Y when he was uninstalling a particular package. Later on realized that portmap is not available and does not comes up from searching yum repos.

Definition:

Portmap is a server that converts RPC program numbers into DARPA protocol port numbers. It must be running in order to make RPC calls.

How to install:

Here is one way to recover and re-install a deleted and/or missing portmap package. In order for the installation to be successful, as a requirement, you need to bring out your Fedora/Centos installation CDs, so we can install and copy the package from it.

From DVD ISO Image:

I do not have the Fedora installation CDs. However, I have Fedora ISO images from my systems. So, in this case, I am going to cover how to re install portmap using the Fedora 7 ISO image from my harddrive. As root,

# locate *.iso
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/ISO/FC6DVD/FC-6-i386-DVD.iso
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# mount -o loop -t iso9660 /data/ISO/FC6DVD/FC-6-i386-DVD.iso /F7/
# cd /F7/Fedora/RPMS/

# ls -la portmap
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-rw-r--r-- 25 root root 38128 2006-10-06 01:17 portmap-4.0-65.2.2.1.i386.rpm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Since the package comes from the ISO image, we will make use of rpm instead of yum installation binary.

# rpm -ivh portmap-4.0-65.2.2.1.i386.rpm

To start it:

# service portmap start

VERIFICATION:

# service portmap status

All is done.

Have you tried to do yum from your own computer CD/DVD drive on Fedora?
Are you blogging from your-own-PC-based Wordpress on Fedora?
Did you give Plone - Content Management System a shot on Fedora?

0 comments:

Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy