OpenVZ Forum


Home » General » Support » to add rpm packages for centos-4-i386
to add rpm packages for centos-4-i386 [message #4334] Thu, 06 July 2006 07:42 Go to next message
rudal is currently offline  rudal
Messages: 20
Registered: July 2006
Junior Member
Hello,

I was having problem when I tried adding webmin.i386.rpm into the os template for centos-4-i386.

What I did was:
1. added the webmin.i386.rpm into the /vz/template/centos/4/i386/vz-addons

2. edit the list default.list

inside default.list
...
# Add-ons for VZ
dummy-centos-4
vzdev
MAKEDEV
webmin

3. then issued a command vzpkgcache -f centos-4-i386-default

it gave me this warning:

zpkgcache -f centos-4-i386-default
Creating cache for centos-4-i386-default OS template
Setting up Install Process
Setting up repositories
centos4-vz-addons 100% |=========================| 951 B 00:00
centos4-base 100% |=========================| 1.1 kB 00:00
centos4-updates-released 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: webmin
Resolving Dependencies...

So what did i do wrong or i misconfigure something?

Thank you.
-Rudy
Re: to add rpm packages for centos-4-i386 [message #4354 is a reply to message #4334] Thu, 06 July 2006 16:27 Go to previous messageGo to next message
aistis is currently offline  aistis
Messages: 77
Registered: September 2005
Location: Kaunas, Lithuania
Member

Rudy, I believe you should recreate meta data repository in /vz/template/centos/4/i386/vz-addons after putting additional RPMs. You can do that by using createrepo utility.

Aistis


Aistis Zenkevicius
http://static.openvz.org/userbars/openvz-user.png
Re: to add rpm packages for centos-4-i386 [message #4359 is a reply to message #4354] Fri, 07 July 2006 05:34 Go to previous messageGo to next message
rudal is currently offline  rudal
Messages: 20
Registered: July 2006
Junior Member
oh ya! hehehe
i forgot that the createrepo i need to download it first.

Thanks! Smile

Rudy
Re: to add rpm packages for centos-4-i386 [message #4360 is a reply to message #4359] Fri, 07 July 2006 05:48 Go to previous messageGo to next message
rudal is currently offline  rudal
Messages: 20
Registered: July 2006
Junior Member
Hmm ok i did that createrepo and do the vzpkgcache and i found this error along the way:


/var/tmp/rpm-tmp.40621: line 523: rm: command not found
Unable to identify operating system
error: %pre(webmin-1.290-1.noarch) scriptlet failed, exit status 2
error: install: %pre scriptlet failed (2), skipping webmin-1.290-1
Installing: sharutils ##################### [114/179]

What could I have done wrong?

Re: to add rpm packages for centos-4-i386 [message #4423 is a reply to message #4360] Mon, 10 July 2006 18:22 Go to previous messageGo to next message
aistis is currently offline  aistis
Messages: 77
Registered: September 2005
Location: Kaunas, Lithuania
Member

weird.. it went okay on my test system:

[snip]
Installing: sudo              ##################### [141/174] 
Operating system is CentOS Linux
Installing: webmin            ##################### [142/174] 
Webmin install complete. You can now login to
http://fc4ovz.partyservice.lan:10000/
as root with your root password.
Installing: sharutils         ##################### [143/174] 
[snip]


strange that it says that it cannot find "rm". Can you try creating a cache without webmin and see if it doesn't fail?

Aistis


Aistis Zenkevicius
http://static.openvz.org/userbars/openvz-user.png
Re: to add rpm packages for centos-4-i386 [message #4425 is a reply to message #4423] Mon, 10 July 2006 18:33 Go to previous messageGo to next message
rudal is currently offline  rudal
Messages: 20
Registered: July 2006
Junior Member
yep2 without webmin, it doesnt failed.
I added gcc and vzpkgcache does not have a problem caching it.
So I was just wondering why. I'll try to do a few more times later, I am currently trying out with FC5 now.

Thanks alot! Smile
Re: to add rpm packages for centos-4-i386 [message #4427 is a reply to message #4425] Mon, 10 July 2006 18:39 Go to previous message
aistis is currently offline  aistis
Messages: 77
Registered: September 2005
Location: Kaunas, Lithuania
Member

can you create a fresh vps and check these files inside:
/etc/centos-release and /etc/redhat-release

as webmin rpm in pre-install stage does this:
elsif (\`cat /etc/centos-release /etc/redhat-release 2>/dev/null\` =~ /CentOS\\s+release\\s+(\\S+)/i && \$1 < 4) {
        print "oscheck='CentOS Linux'\\n";


and

if [ ! -r /etc/webmin/config ]; then
        if [ "$oscheck" = "" ]; then
                echo Unable to identify operating system
                exit 2
        fi


so i don't know how in a hell can it fail there.


Aistis Zenkevicius
http://static.openvz.org/userbars/openvz-user.png
Previous Topic: *SOLVED* Per Vps traffic
Next Topic: OS template creation
Goto Forum:
  


Current Time: Wed Jul 31 02:20:24 GMT 2024

Total time taken to generate the page: 0.03280 seconds