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