Thursday, July 28, 2005

rpm-get version 1.5

redhatI don't write this, rpm-get just follow the debian's apt-get, so xxx-get is very usefull tools for online upgrade/update, I have spend some time and finally get it work on my redhat 7.1. I have encounter some problem eg. genrpmlist file missing, but finally get it work. Most people will use yum on red hat or fedora. 1. download and install ftp://rpmfind.net/linux/Mandrake/10.0/contrib/i586/rpm-get-1.5-1mdk.noarch.rpm 2. $ rpm-get configure 3. set ftp path $ vi /etc/rpm-get.conf ftppath="ftp://ftp.sunet.se/pub/Linux/distributions/redhat/redhat/linux/7.1/en/os/i386/RedHat" sourcepath="ftp://ftp.sunet.se/pub/Linux/distributions/redhat/redhat/linux/7.1/en/os/i386/SRPMS" 4. $ rpm-get update 5. genrpmlist missing I download from http://people.zoy.org/~alien/rpm-get/rpm-get/genrpmlist 6. genrpmlist is not working I modified the script file, change for section "Generating /var/lib/rpm-get/RPMS-list" lynx --source $ftppath/RPMS/ | awk -F'<A HREF="' '{print $2}' | awk -F'">' '{print $1}' > /var/lib/rpm-get/RPMS-list 2>/dev/null && echo "$ok" || echo "$fail" and "SRPMS-list" lynx --source $sourcepath | awk -F'<A HREF="' '{print $2}' | awk -F'">' '{print$1}' > /var/lib/rpm-get/SRPMS-list 2>/dev/null && echo "$ok" || echo "$fail" 7. since I have a proxy $ rpm -qlp ftp://xxx.xxx.xxx/helloworld.rpm doesn't not work for me, even I provide --httpproxy option, I have to change the download path from ftp:// to http://rpm -qlp $httppath/RPMS/$packages >> /var/lib/rpm-get/rpm-list.db and %httppath set in /etc/rpm-get.conf, just after ftppath httppath="http://ftp.sunet.se/pub/Linux/distributions/redhat/redhat/linux/7.1/en/os/i386/RedHat" mandrake:- http://rpmfind.net/linux/Mandrake/10.2/i586/media/main/ redhat:- http://ftp.sunet.se/pub/Linux/distributions/redhat/redhat/linux/7.1/en/os/i386/RedHat

No comments:

Post a Comment