How to automatically generate a yum repo with Nexus

Add the yum capability in Nexus

  • Point your browser to the Nexus instance: and login with admin privileges.
  • In Nexus administration, add the following capability: Yum: Generate Metadata selecting the correct repository (e.g. releases).
  • Enable the capability

Upload an artifact

  • On the selected repository select the Artifact upload tab
  • Select Gav definition: Gav Parameters
  • Select Auto Guess
  • Click on Select Artifact(s) to upload and select one or more rpms by browsing the filesystem
  • Fill in the Group field (e.g. org.glite)
  • Click on Add Artifact
  • Click on Upload Artifact(s)

The yum repo is automatically generated upon artifacts upload in the repository.

Use the yum repo

  • Click on the capability Yum: Generate Metadata for the yum configuration file to be displayed
  • On an SL6 machine, copy and paste the displayed yum configuration file in /etc/yum.repos.d/nexus.repo
  • yum clean all
  • yum makecache
  • yum install _RPMNAMES_

-- FabioCapannini - 2013-05-14

Topic revision: r1 - 2013-05-14 - FabioCapannini
This site is powered by the TWiki collaboration platformCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback