I downloaded these 2 packages
yum-3.0.tar.gz & yum-3.0-1.src.rpm
extracted tar file and gave make command its output is -:
[root@blackpearl yum-3.0]# make
for d in rpmUtils yum etc docs; do make PYTHON=python -C $d; [ $? = 0 ] || exit 1 ; done
make[1]: Entering directory `/root/Desktop/yum-3.0/rpmUtils'
echo "Nothing to do"
Nothing to do
make[1]: Leaving directory `/root/Desktop/yum-3.0/rpmUtils'
make[1]: Entering directory `/root/Desktop/yum-3.0/yum'
echo "Nothing to do"
Nothing to do
make[1]: Leaving directory `/root/Desktop/yum-3.0/yum'
make[1]: Entering directory `/root/Desktop/yum-3.0/etc'
echo "Nothing to do"
Nothing to do
make[1]: Leaving directory `/root/Desktop/yum-3.0/etc'
make[1]: Entering directory `/root/Desktop/yum-3.0/docs'
echo "Nothing to do"
Nothing to do
make[1]: Leaving directory `/root/Desktop/yum-3.0/docs'
[root@blackpearl yum-3.0]# make install
mkdir -p /usr/share/yum-cli
for p in callback.py cli.py i18n.py output.py progress_meter.py shell.py translate.py yumcommands.py yummain.py yum-updatesd.py ; do \
install -m 644 $p /usr/share/yum-cli/$p; \
done
mv /usr/share/yum-cli/yum-updatesd.py /usr/share/yum-cli/yumupd.py
python -c "import compileall; compileall.compile_dir('/usr/share/yum-cli', 1, '', 1)"
Listing /usr/share/yum-cli ...
Compiling /usr/share/yum-cli/callback.py ...
Compiling /usr/share/yum-cli/cli.py ...
Compiling /usr/share/yum-cli/i18n.py ...
Compiling /usr/share/yum-cli/output.py ...
Compiling /usr/share/yum-cli/progress_meter.py ...
Compiling /usr/share/yum-cli/shell.py ...
Compiling /usr/share/yum-cli/translate.py ...
translate.py:117: FutureWarning: hex/oct constants > sys.maxint will return positive values in Python 2.4 and up
if _StrToInt(buffer[:4]) != 0x950412de:
translate.py:162: FutureWarning: hex/oct constants > sys.maxint will return positive values in Python 2.4 and up
f.write(_intToStr(0x950412de)) # magic number
Compiling /usr/share/yum-cli/yumcommands.py ...
Compiling /usr/share/yum-cli/yummain.py ...
Compiling /usr/share/yum-cli/yumupd.py ...
File "yumupd.py", line 200
@dbus.service.signal('edu.duke.linux.yum')
^
SyntaxError: invalid syntax
mkdir -p /usr/bin /usr/sbin
install -m 755 bin/yum.py /usr/bin/yum
install -m 755 bin/yum-updatesd.py /usr/sbin/yum-updatesd
mkdir -p /var/cache/yum
for d in rpmUtils yum etc docs; do make PYTHON=python DESTDIR=`cd ; pwd` -C $d install; [ $? = 0 ] || exit 1; done
make[1]: Entering directory `/root/Desktop/yum-3.0/rpmUtils'
mkdir -p /root//usr/lib/python2.3/site-packages/rpmUtils
for p in arch.py __init__.py miscutils.py oldUtils.py transaction.py updates.py ; do \
install -m 644 $p /root//usr/lib/python2.3/site-packages/rpmUtils/$p; \
done
python -c "import compileall; compileall.compile_dir('/root//usr/lib/python2.3/site-packages/rpmUtils', 1, '', 1)"
Listing /root//usr/lib/python2.3/site-packages/rpmUtils ...
Compiling /root//usr/lib/python2.3/site-packages/rpmUtils/__init__.py ...
Compiling /root//usr/lib/python2.3/site-packages/rpmUtils/arch.py ...
Compiling /root//usr/lib/python2.3/site-packages/rpmUtils/miscutils.py ...
Compiling /root//usr/lib/python2.3/site-packages/rpmUtils/oldUtils.py ...
Compiling /root//usr/lib/python2.3/site-packages/rpmUtils/transaction.py ...
Compiling /root//usr/lib/python2.3/site-packages/rpmUtils/updates.py ...
make[1]: Leaving directory `/root/Desktop/yum-3.0/rpmUtils'
make[1]: Entering directory `/root/Desktop/yum-3.0/yum'
mkdir -p /root//usr/lib/python2.3/site-packages/yum
for p in comps.py config.py constants.py depsolve.py Errors.py failover.py __init__.py logginglevels.py mdparser.py misc.py packageSack.py packages.py parser.py pgpmsg.py plugins.py repoMDObject.py repos.py rpmsack.py sqlitecache.py sqlitesack.py storagefactory.py transactioninfo.py update_md.py yumRepo.py ; do \
install -m 644 $p /root//usr/lib/python2.3/site-packages/yum/$p; \
done
python -c "import compileall; compileall.compile_dir('/root//usr/lib/python2.3/site-packages/yum', 1, '', 1)"
Listing /root//usr/lib/python2.3/site-packages/yum ...
Compiling /root//usr/lib/python2.3/site-packages/yum/Errors.py ...
Compiling /root//usr/lib/python2.3/site-packages/yum/__init__.py ...
Compiling /root//usr/lib/python2.3/site-packages/yum/comps.py ...
Compiling /root//usr/lib/python2.3/site-packages/yum/config.py ...
Compiling /root//usr/lib/python2.3/site-packages/yum/constants.py ...
Compiling /root//usr/lib/python2.3/site-packages/yum/depsolve.py ...
Compiling /root//usr/lib/python2.3/site-packages/yum/failover.py ...
Compiling /root//usr/lib/python2.3/site-packages/yum/logginglevels.py ...
Compiling /root//usr/lib/python2.3/site-packages/yum/mdparser.py ...
Compiling /root//usr/lib/python2.3/site-packages/yum/misc.py ...
Compiling /root//usr/lib/python2.3/site-packages/yum/packageSack.py ...
Compiling /root//usr/lib/python2.3/site-packages/yum/packages.py ...
Compiling /root//usr/lib/python2.3/site-packages/yum/parser.py ...
Compiling /root//usr/lib/python2.3/site-packages/yum/pgpmsg.py ...
Compiling /root//usr/lib/python2.3/site-packages/yum/plugins.py ...
Compiling /root//usr/lib/python2.3/site-packages/yum/repoMDObject.py ...
Compiling /root//usr/lib/python2.3/site-packages/yum/repos.py ...
Compiling /root//usr/lib/python2.3/site-packages/yum/rpmsack.py ...
Compiling /root//usr/lib/python2.3/site-packages/yum/sqlitecache.py ...
Compiling /root//usr/lib/python2.3/site-packages/yum/sqlitesack.py ...
Compiling /root//usr/lib/python2.3/site-packages/yum/storagefactory.py ...
Compiling /root//usr/lib/python2.3/site-packages/yum/transactioninfo.py ...
Compiling /root//usr/lib/python2.3/site-packages/yum/update_md.py ...
Compiling /root//usr/lib/python2.3/site-packages/yum/yumRepo.py ...
make[1]: Leaving directory `/root/Desktop/yum-3.0/yum'
make[1]: Entering directory `/root/Desktop/yum-3.0/etc'
mkdir -p /root/etc/yum.repos.d
install -m 644 yum.conf /root/etc/yum.conf
mkdir -p /root/etc/logrotate.d
install -m 644 yum.logrotate /root/etc/logrotate.d/yum
mkdir -p /root/etc/rc.d/init.d
install -m 755 yum-updatesd.init /root/etc/rc.d/init.d/yum-updatesd
mkdir -p /root/etc/dbus-1/system.d/
install -m 755 yum-updatesd-dbus.conf /root/etc/dbus-1/system.d/yum-updatesd.conf
mkdir -p /root/etc/yum/
install -m 755 yum-updatesd.conf /root/etc/yum/yum-updatesd.conf
make[1]: Leaving directory `/root/Desktop/yum-3.0/etc'
make[1]: Entering directory `/root/Desktop/yum-3.0/docs'
mkdir -p /root/usr/share/man/man{5,8}
install -m 644 yum.8 /root/usr/share/man/man8/yum.8
install -m 644 yum-shell.8 /root/usr/share/man/man8/yum-shell.8
install -m 644 yum.conf.5 /root/usr/share/man/man5/yum.conf.5
install -m 644 yum-updatesd.8 /root/usr/share/man/man8/yum-updatesd.8
install -m 644 yum-updatesd.conf.5 /root/usr/share/man/man5/yum-updatesd.conf.5
make[1]: Leaving directory `/root/Desktop/yum-3.0/docs'
[root@blackpearl yum-3.0]#
and when tried to install rpm
[root@blackpearl Desktop]# rpm -ivh yum-3.0-1.src.rpm
warning: yum-3.0-1.src.rpm: V3 DSA signature: NOKEY, key ID 69886cc7
1:yum warning: user skvidal does not exist - using root
warning: group skvidal does not exist - using root
warning: user skvidal does not exist - using root)
warning: group skvidal does not exist - using root
########################################### [100%]
[root@blackpearl Desktop]#
Whatever i did is rite or how to do if it improper ?
__________
I also referred Stanton Finley notes
when i gave
# yum -y update
its output is
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.3.4 (#1, Feb 2 2005, 11:44:49)
[GCC 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)]