Rpm's Repository Setup for QA: Difference between revisions
From Yocto Project
Jump to navigationJump to search
(4 intermediate revisions by the same user not shown) | |||
Line 22: | Line 22: | ||
rpm/repodata/primary.xml.gz | rpm/repodata/primary.xml.gz | ||
rpm/repodata/repomd.xml | rpm/repodata/repomd.xml | ||
== Steps - DUT (Device Under Test) == | == Steps - DUT (Device Under Test) == | ||
1. Inform <code> smart </code> of package database you want to use | 1. Inform <code> smart </code> of package database you want to use, <code> server.name = host_ip </code> | ||
smart channel --add all type=rpm-md baseurl=http://server.name/rpm | smart channel --add all type=rpm-md baseurl=http://server.name/rpm | ||
2. Fetch the repository information using below command | 2. Fetch the repository information using below command |
Latest revision as of 17:39, 20 May 2016
Requirements
To 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:
rpm/repodata/filelists.xml.gz rpm/repodata/other.xml.gz rpm/repodata/primary.xml.gz rpm/repodata/repomd.xml
Steps - DUT (Device Under Test)
1. Inform smart
of package database you want to use, server.name = host_ip
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