Rpm's Repository Setup for QA: Difference between revisions

From Yocto Project
Jump to navigationJump to search
No edit summary
No edit summary
Line 3: Line 3:
Setting up a repository to have different version of rpm packages to be used in smart tests for BSP. You will need:
Setting up a repository to have different version of rpm packages to be used in smart tests for BSP. You will need:


* Apache 2 installed and configured (may not need too much configuration);
* Apache 2 installed and configured (may not need too much configuration).
* createrepo installed
* createrepo installed
* root privileges


== Steps ==
== Steps - Host ==


1. Create a folder and upload the *.rpm files with different versions
1. Create a folder and upload inside the <code> *.rpm </code> files with different versions


mkdir /var/www/html/rpm
mkdir /var/www/html/rpm


2. S
2. Create the repo using <code> createrepo </code> tool
 
createrepo /var/www/html/rpm/
 
3. Ensure <code> repodata/ </code> directory was created with below files inside: 
 
repodata/filelists.xml.gz
repodata/other.xml.gz
repodata/primary.xml.gz
repodata/repomd.xml
 
4. Now the repo for rpm packages is ready to be used
 
== Steps - DUT (Device Under Test) ==
 
1. Inform <code> smart </code> of package database you want to use
 
smart channel --add all type=rpm-md baseurl=http://server.name/rpm
 
2. Fetch the repository information using below command
smart update
 
3. Now follow the steps indicated on smart Test Cases for BSP

Revision as of 17:15, 20 May 2016

Requirements

Setting up a repository to have different version of rpm packages to be used in smart tests for BSP. You will need:

  • Apache 2 installed and configured (may not need too much configuration).
  • createrepo installed

Steps - Host

1. Create a folder and upload inside the *.rpm files with different versions

mkdir /var/www/html/rpm

2. Create the repo using createrepo tool

createrepo /var/www/html/rpm/

3. Ensure repodata/ directory was created with below files inside:

repodata/filelists.xml.gz
repodata/other.xml.gz
repodata/primary.xml.gz
repodata/repomd.xml

4. Now the repo for rpm packages is ready to be used

Steps - DUT (Device Under Test)

1. Inform smart of package database you want to use

smart channel --add all type=rpm-md baseurl=http://server.name/rpm

2. Fetch the repository information using below command

smart update

3. Now follow the steps indicated on smart Test Cases for BSP