I have 5.5 installed on some servers. Now I need to upgrade it to 5.6. I did it by using RedHat 5.6 DVD media using GUI.
But my question is: can this be done without restarting the server and booting from DVD while I'm logged in and the 5.5 session is running? Can this be done on the command line, using the media which I inserted into the DVD drive?
Action taken based on Matteo Instructions
- Mounted Redhat media on */media/RHEL_5.6 i386 DVD/Server*
- created file in /etc/yum.repos/dvd.repo
- Then run this command rpm -ivh createrepo-0.4.blahblahblah.el5.noarch.rpm
- Then I tried to run this command createrepo /media/RHEL_5.6 i386 DVD/Server
And terminal slapped back with this error
Error: Only One Directory allowed per run
Normally i copy the RPMs from /media/RHEL_5.6 i386 DVD/Server to /RPMS directory then i run this command createrepo /RPMS and it work. So tell me what to do now.
inserted the lines in dvd.repo
[dvd.repo] name=Red Hat Entp Linux $releasever -$basearch - dvd baseurl=file:///media/RHEL_5.6 i386 DVD/Server/ enabled=1 gpgcheck=0
and when I used the command
Yum clean all
it gave me error
Options Error: Error Parsing 'file:///media/RHEL_5.6 i386 DVD/Server/ URL must be http, ftp, file or https not ""