HowTo Create A Public Repo: Difference between revisions
From MediaWiki
Jump to navigationJump to search
(Tweaks to make copy/paste easer) |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
__TOC__ | __TOC__ | ||
= '''Overview''' = | = '''Overview''' = | ||
This page briefly shows example steps on how to create a Public Repo for selective RPMs. An example public repo creation for NST | This page briefly shows example steps on how to create a Public Repo for selective RPMs. An example public repo creation for NST 38 will be shown hosted at a2host. | ||
= '''Create Top Level Local Directory Paths For RPMs To Be Published''' = | = '''Create Top Level Local Directory Paths For RPMs To Be Published''' = | ||
These paths mimic that on the public repo server (e.g., a2host). | These paths mimic that on the public repo server (e.g., a2host). | ||
mkdir -p / | NSTREL=38 | ||
mkdir -p / | mkdir -p ~/f${NSTREL}/x86_64/noarch; | ||
mkdir -p ~/f${NSTREL}/x86_64/x86_64; | |||
= '''Copy RPM To Be Publish Over To These Directories''' = | = '''Copy RPM To Be Publish Over To These Directories''' = | ||
Copy already created RPMs from the NST Pro Repo | Copy already created RPMs from the NST Pro Repo 38. This example includes RPMs: nstwui, nstwui-filesystem and snort. | ||
cp / | cp ~/repo${NSTREL}/yum/repo/noarch/nstwui-${NSTREL}*.nst${NSTREL}.noarch.rpm ~/f${NSTREL}/x86_64/noarch; | ||
cp / | cp ~/repo${NSTREL}/yum/repo/noarch/nstwui-filesystem-${NSTREL}*.nst${NSTREL}.noarch.rpm ~/f${NSTREL}/x86_64/noarch; | ||
cp / | cp ~/repo${NSTREL}/yum/repo/x86_64/snort-*.nst${NSTREL}.x86_64.rpm ~/f${NSTREL}/x86_64/x86_64; | ||
= '''Sign The RPMs''' = | = '''Sign The RPMs''' = | ||
Sign all new RPMs in the repo. | Sign all new RPMs in the repo. | ||
rpm --addsign /home/nst/ | rpm --addsign /home/nst/f${NSTREL}/x86_64/noarch/nstwui-${NSTREL}*.nst${NSTREL}.noarch.rpm ~/f${NSTREL}/x86_64/noarch/nstwui-filesystem-${NSTREL}*.nst${NSTREL}.noarch.rpm ~/f${NSTREL}/x86_64/x86_64/snort-*.nst${NSTREL}.x86_64.rpm; | ||
= '''Create The Repo''' = | = '''Create The Repo''' = | ||
Create a RPM repo under the NST home directory: "'''/home/nst/ | Create a RPM repo under the NST home directory: "'''/home/nst/f${NSTREL}/x86_64'''" | ||
createrepo -v / | createrepo -v ~/f${NSTREL}/x86_64; | ||
= '''Upload Repo To The Public NST Repo Server''' = | = '''Upload Repo To The Public NST Repo Server''' = | ||
Send the entire repo to the public NST repository. | Send the entire repo to the public NST repository. | ||
rsync --delete -avh / | rsync --delete -avh ~/f${NSTREL} a2:public_html/repo/nst; |
Latest revision as of 16:12, 24 July 2023
Overview
This page briefly shows example steps on how to create a Public Repo for selective RPMs. An example public repo creation for NST 38 will be shown hosted at a2host.
Create Top Level Local Directory Paths For RPMs To Be Published
These paths mimic that on the public repo server (e.g., a2host).
NSTREL=38 mkdir -p ~/f${NSTREL}/x86_64/noarch; mkdir -p ~/f${NSTREL}/x86_64/x86_64;
Copy RPM To Be Publish Over To These Directories
Copy already created RPMs from the NST Pro Repo 38. This example includes RPMs: nstwui, nstwui-filesystem and snort.
cp ~/repo${NSTREL}/yum/repo/noarch/nstwui-${NSTREL}*.nst${NSTREL}.noarch.rpm ~/f${NSTREL}/x86_64/noarch; cp ~/repo${NSTREL}/yum/repo/noarch/nstwui-filesystem-${NSTREL}*.nst${NSTREL}.noarch.rpm ~/f${NSTREL}/x86_64/noarch; cp ~/repo${NSTREL}/yum/repo/x86_64/snort-*.nst${NSTREL}.x86_64.rpm ~/f${NSTREL}/x86_64/x86_64;
Sign The RPMs
Sign all new RPMs in the repo.
rpm --addsign /home/nst/f${NSTREL}/x86_64/noarch/nstwui-${NSTREL}*.nst${NSTREL}.noarch.rpm ~/f${NSTREL}/x86_64/noarch/nstwui-filesystem-${NSTREL}*.nst${NSTREL}.noarch.rpm ~/f${NSTREL}/x86_64/x86_64/snort-*.nst${NSTREL}.x86_64.rpm;
Create The Repo
Create a RPM repo under the NST home directory: "/home/nst/f${NSTREL}/x86_64"
createrepo -v ~/f${NSTREL}/x86_64;
Upload Repo To The Public NST Repo Server
Send the entire repo to the public NST repository.
rsync --delete -avh ~/f${NSTREL} a2:public_html/repo/nst;