<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Create_Repo_for_Applications</id>
	<title>Create Repo for Applications - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Create_Repo_for_Applications"/>
	<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Create_Repo_for_Applications&amp;action=history"/>
	<updated>2026-05-04T23:10:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Create_Repo_for_Applications&amp;diff=1421&amp;oldid=prev</id>
		<title>Michael: Created page with &quot;&#039;&#039;&#039;Brief&#039;&#039;&#039; Update required * TODO: add mirrors * TODO: add gpg-checks  * Keep RPMs after downloading, setup yum.conf with: &lt;syntaxhighlight&gt; # file: /var/cache/yum/yum.conf keepcache=1 ...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Create_Repo_for_Applications&amp;diff=1421&amp;oldid=prev"/>
		<updated>2012-12-07T11:45:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Brief&amp;#039;&amp;#039;&amp;#039; Update required * TODO: add mirrors * TODO: add gpg-checks  * Keep RPMs after downloading, setup yum.conf with: &amp;lt;syntaxhighlight&amp;gt; # file: /var/cache/yum/yum.conf keepcache=1 ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Brief&amp;#039;&amp;#039;&amp;#039; Update required&lt;br /&gt;
* TODO: add mirrors&lt;br /&gt;
* TODO: add gpg-checks&lt;br /&gt;
&lt;br /&gt;
* Keep RPMs after downloading, setup yum.conf with:&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
# file: /var/cache/yum/yum.conf&lt;br /&gt;
keepcache=1&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Create repo on a system (used PCM headnode for this)&lt;br /&gt;
* Just copied a single RPM in to the directory below&lt;br /&gt;
* Create repo in the /var/www/html directory (web access required)&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
[root@pcmtest html]# createrepo --verbose /var/www/html/viglenrepo&lt;br /&gt;
1/1 - vapp-1-1.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
Saving Primary metadata&lt;br /&gt;
Saving file lists metadata&lt;br /&gt;
Saving other metadata&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Add repo to another system, /etc/yum.repos.d/viglen.repo&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
# NOTE 172.28.10.69 was the server we ran createrepo on&lt;br /&gt;
[root@pcm-mctest ~]$ cat /etc/yum.repos.d/viglen.repo &lt;br /&gt;
[viglen]&lt;br /&gt;
name=Viglen Application repo&lt;br /&gt;
baseurl=http://172.28.10.69/viglenrepo/&lt;br /&gt;
enabled=1&lt;br /&gt;
gpgcheck=0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Check what files the repo provides&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
[root@pcm-mctest etc]$ repoquery -q --repoid=viglen -a&lt;br /&gt;
vapp-0:1-1.x86_64&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install an app&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
[root@pcm-mctest ~]$ yum search vapp&lt;br /&gt;
Loaded plugins: fastestmirror&lt;br /&gt;
Loading mirror speeds from cached hostfile&lt;br /&gt;
kusu-installer                                                                             | 1.1 kB     00:00     &lt;br /&gt;
================================================= Matched: vapp ==================================================&lt;br /&gt;
vapp.x86_64 : Viglen Application Test&lt;br /&gt;
&lt;br /&gt;
[root@pcm-mctest ~]$ yum install vapp&lt;br /&gt;
Loaded plugins: fastestmirror&lt;br /&gt;
Loading mirror speeds from cached hostfile&lt;br /&gt;
Setting up Install Process&lt;br /&gt;
Resolving Dependencies&lt;br /&gt;
--&amp;gt; Running transaction check&lt;br /&gt;
---&amp;gt; Package vapp.x86_64 0:1-1 set to be updated&lt;br /&gt;
--&amp;gt; Finished Dependency Resolution&lt;br /&gt;
&lt;br /&gt;
Dependencies Resolved&lt;br /&gt;
&lt;br /&gt;
==================================================================================================================&lt;br /&gt;
 Package                   Arch                        Version                  Repository                   Size&lt;br /&gt;
==================================================================================================================&lt;br /&gt;
Installing:&lt;br /&gt;
 vapp                      x86_64                      1-1                      viglen                      2.6 k&lt;br /&gt;
&lt;br /&gt;
Transaction Summary&lt;br /&gt;
==================================================================================================================&lt;br /&gt;
Install       1 Package(s)&lt;br /&gt;
Upgrade       0 Package(s)&lt;br /&gt;
&lt;br /&gt;
Total download size: 2.6 k&lt;br /&gt;
Is this ok [y/N]: y&lt;br /&gt;
Downloading Packages:&lt;br /&gt;
vapp-1-1.x86_64.rpm                                                                        | 2.6 kB     00:00     &lt;br /&gt;
Running rpm_check_debug&lt;br /&gt;
Running Transaction Test&lt;br /&gt;
Finished Transaction Test&lt;br /&gt;
Transaction Test Succeeded&lt;br /&gt;
Running Transaction&lt;br /&gt;
  Installing     : vapp                                                                                       1/1 &lt;br /&gt;
&lt;br /&gt;
Installed:&lt;br /&gt;
  vapp.x86_64 0:1-1                                                                                               &lt;br /&gt;
&lt;br /&gt;
Complete!&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copy RPMs across rest of cluster&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
# RPM will be in the /var/cache/yum directory, add to PCM&lt;br /&gt;
cp /var/cache/yum/viglen/packages/vapp-1-1.x86_64.rpm /depot/contrib/1000/&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When adding RPM to a repo, run the following:&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
createrepo --update /var/www/html/viglenrepo&lt;br /&gt;
# on client&lt;br /&gt;
yum clean all &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael</name></author>
	</entry>
</feed>