Greetings,

----- Original Message -----
> for creating rpm-files you need rpmbuild and spec-file.
> 
> for example:
> 
> $ cat vz-template-centos-7-x86_64-minimal.spec
> 
> Name: vz-template-centos-7-x86_64-minimal
> Version: 2015.06.16
> Release: 1%{?dist}
> License: TBD
> Summary: TBD
> Source0:
> http://download.openvz.org/template/precreated/centos-7-x86_64-minimal.tar.gz
> %description
> TBD
> %install
> rm -rf $RPM_BUILD_ROOT
> install -p -D -m0644 %{SOURCE0}
> $RPM_BUILD_ROOT/vz/template/cache/centos-7-x86_64-minimal.tar.gz
> 
> %files
> %defattr(-,root,root,-)
> /vz/template/cache/centos-7-x86_64-minimal.tar.gz
> 
> $ rpmbuild -ba vz-template-centos-7-x86_64-minimal.spec
> 
> as result you will got
> 
> vz-template-centos-7-x86_64-minimal-2015.06.16-1.el7.openvz.x86_64.rpm
> 
> and file /vz/template/cache/centos-7-x86_64-minimal.tar.gz
> now can be installed, upgraded, removed, ... via rpm and yum.
> 
> # yum install vz-template-centos-7-x86_64-minimal
> 
> # yum update

When the package is just a big .tar.gz|xz file... and you have to build all new 
rpm files every time there are OS template updates... sounds like a lot of 
overhead.  Feel free to do it for yourself.  No one is going to stop you.

> vztmpl-dl is package manager without dependency information provided.
> this is not fine.
> 
> and updating system to current state requires
> run two commands instead of only one: "yum update".
> this also is not fine.

Umm, we really do NOT want to encourage people running older kernels and 
versions of the vz utils.  Everyone is recommended to run the latest stable 
releases.

I just use rsync to grab the OS Templates myself.

TYL,
-- 
Scott Dowdle
704 Church Street
Belgrade, MT 59714
(406)388-0827 [home]
(406)994-3931 [work]
_______________________________________________
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users

Reply via email to