You are here

yum Server create

 

-- Eine leere Repository erstellen.

# mkdir /GB
# createrepo /GB

Saving Primary metadata
Saving file lists metadata
Saving other metadata

 

# tree /GB

/GB
`-- repodata
    |-- filelists.xml.gz
    |-- other.xml.gz
    |-- primary.xml.gz
    `-- repomd.xml

1 directory, 4 files 

 

 

-- Software Package von CD in Verzeichniss kopieren.

# cp /media/RHELServerSupplementary5.1i3861/Supplementary/*.rpm     /GB/

# tree /GB

/GB
|-- acroread-7.0.9-1.el5.i386.rpm
|-- acroread-plugin-7.0.9-1.el5.i386.rpm
|-- createrepo-0.4.11-3.el5.src.rpm
`-- repodata
    |-- filelists.xml.gz
    |-- other.xml.gz
    |-- primary.xml.gz
    `-- repomd.xml

1 directory, 7 files 

 

 

-- Template Config File Kopieren und editieren.

# mv /etc/yum.repos.d/rhel-debuginfo.repo /etc/yum.repos.d/GBrepo.repo

# vi /etc/yum.repos.d/GBrepo.repo

[GBrepo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=file:///GB
enabled=1

 

# yum list all |grep acroread

This system is not registered with RHN.
RHN support will be disabled.
acroread.i386 7.0.9-1.el5 GBrepo
acroread-plugin.i386 7.0.9-1.el5 GBrepo

 

 

 

-- Ein Neues Package ( xterm-debuginfo-*  ) in eine bestehende Repository einbinden.

-- Erst die metadaten aus der Repository löschen.
# yum clean metadata

Loading "rhnplugin" plugin
Loading "security" plugin
Loading "installonlyn" plugin
This system is not registered with RHN.
RHN support will be disabled.
3 metadata files removed

 

# createrepo -v /GB

1/4 - acroread-7.0.9-1.el5.i386.rpm
2/4 - createrepo-0.4.11-3.el5.src.rpm
3/4 - xterm-debuginfo-215-8.el5.i386.rpm
4/4 - acroread-plugin-7.0.9-1.el5.i386.rpm

Saving Primary metadata
Saving file lists metadata
Saving other metadata

 

 

--  neue Package wird jetzt angezeigt.

[root@defx0yaa yum.repos.d]# yum list all |grep xterm

This system is not registered with RHN.
RHN support will be disabled.
** Message: sqlite cache needs updating, reading in metadata
xterm.i386                               215-5.el5              installed       
xterm-debuginfo.i386                     215-8.el5              GBrepo

 

 

-- Welche Package sind in der Repository vorhanden.

# yum list available

Loading "rhnplugin" plugin
Loading "security" plugin
Loading "installonlyn" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up repositories
Reading repository metadata in from local files
Available Packages
acroread.i386                            7.0.9-1.el5            GBrepo          
acroread-plugin.i386                     7.0.9-1.el5            GBrepo          
xterm-debuginfo.i386                     215-8.el5              GBrepo    

 

# yum list all |grep xterm

This system is not registered with RHN.
RHN support will be disabled.
xterm.i386                               215-5.el5              installed       
xterm-debuginfo.i386                     215-8.el5              GBrepo 

 

 

-- Installation vom Package.

# yum install xterm-debuginfo.i386

Loading "rhnplugin" plugin
Loading "security" plugin
Loading "installonlyn" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for xterm-debuginfo to pack into transaction set.
xterm-debuginfo-215-8.el5 100% |=========================|  13 kB    00:00     
---> Package xterm-debuginfo.i386 0:215-8.el5 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 xterm-debuginfo         i386       215-8.el5        GBrepo            635 k

Transaction Summary
=============================================================================
Install      1 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 635 k
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: xterm-debuginfo              ######################### [1/1]

Installed: xterm-debuginfo.i386 0:215-8.el5
Complete!

 

# yum list all |grep xterm

This system is not registered with RHN.
RHN support will be disabled.
xterm.i386                               215-5.el5              installed       
xterm-debuginfo.i386                     215-8.el5              installed