1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| # Create the repo first
awless create bucket rpmtestrepo
# Get an existing repository base
wget -r -np -nH -A "php73*rpm" $RPM_URL_SERVER
# Create a repo
createrepo --update /tmp2/
# upload to s3 the yum repo
aws s3 cp --recursive php73 s3://rpmtestrepo/ --acl public-read
# create the yum repo file: /etc/yum.repos.d/myrepo.repo
[reece]
baseurl = https://rpmtestrepo.s3.us-west-1.amazonaws.com
enabled = 1
gpgcheck = 0
name = Reece
repo_gpgcheck = 0
# refresh repos
yum clean all
yum repolist
yum check-update
# another way to add the repo
yum-config-manager --add-repo
yum-config-manager --nogpgcheck --add-repo https://rpmtestrepo.s3.us-west-1.amazonaws.com
echo "gpgcheck=0" >> /etc/yum.repos.d/rpmtestrepo.s3.us-west-1.amazonaws.com.repo
cat /etc/yum.repos.d/rpmtestrepo.s3.us-west-1.amazonaws.com.repo
|