On 19.06.2015 21:46, Scott Dowdle wrote:

how do you make it work with non-rpm files?

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

I'm definitely against the idea.

why?

Well, unless you can tell me how to make it work without changing anything,
the tool we have works fine.

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.

--
Best regards,
 Gena
_______________________________________________
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users

Reply via email to