Merged docs branch
This commit is contained in:
15
README.md
15
README.md
@@ -1,6 +1,6 @@
|
|||||||
# RPM Repositories Cloning tool
|
# RPM Repositories Cloning tool
|
||||||
|
|
||||||
1 to 1 rpm cloning tool
|
1 to 1 rpm repository cloning tool
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
@@ -21,10 +21,19 @@ in case of Slackware Linux everything is already shipped with single Perl
|
|||||||
package.
|
package.
|
||||||
|
|
||||||
```
|
```
|
||||||
apt install libjson-pp-perl, libfile-spec-perl, libxml-parser-perl,
|
# apt install libjson-pp-perl libfile-spec-perl libxml-parser-perl \
|
||||||
libio-compress-perl, liburi-perl
|
libio-compress-perl liburi-perl
|
||||||
```
|
```
|
||||||
|
|
||||||
|
A correct path to repository. You need a string after "baseurl=" in repo-file
|
||||||
|
(one that located in /etc/yum.repos.d, for example), it must end with trailng
|
||||||
|
slash. If it does not, just add it.
|
||||||
|
|
||||||
|
To check that url is correct you can try to download part of repository xml
|
||||||
|
metadata. Put your string into browser address bar and add
|
||||||
|
"repodata/repomd.xml" (no quotes) and if you see xml text then - vua-la! -
|
||||||
|
your string is correct.
|
||||||
|
|
||||||
### Installing
|
### Installing
|
||||||
|
|
||||||
There are no additional effort required for one-shot sync.
|
There are no additional effort required for one-shot sync.
|
||||||
|
|||||||
3
TODO
3
TODO
@@ -6,9 +6,6 @@
|
|||||||
* добавить пример debian package
|
* добавить пример debian package
|
||||||
* добавить slackbuild
|
* добавить slackbuild
|
||||||
* добавить ebuild
|
* добавить ebuild
|
||||||
* добавить примеры crontab
|
|
||||||
* добавить man page
|
|
||||||
* добавить методики работы с https://packagecloud.io/ и сервисами подобными им (без автоиндекса)
|
|
||||||
|
|
||||||
Факультативное задание :)
|
Факультативное задание :)
|
||||||
* добавить возможность клонирования deb-репозиториев
|
* добавить возможность клонирования deb-репозиториев
|
||||||
|
|||||||
41
docs/rrclone.1
Normal file
41
docs/rrclone.1
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
.TH "RRCLONE" "1" "5 December 2019"
|
||||||
|
.SH "NAME"
|
||||||
|
rrclone \- RPM Repository Cloning tool
|
||||||
|
.SH "SYNOPSIS"
|
||||||
|
.B rrclone
|
||||||
|
[\fI\,OPTION\/\fR]...
|
||||||
|
SOURCE
|
||||||
|
DESTINATION
|
||||||
|
.SH "DESCRIPTION"
|
||||||
|
.PP
|
||||||
|
Copies all packages and metadata from remote repository to local folder.
|
||||||
|
To guess package list it parses metadata. For now only XML metadata is supported.
|
||||||
|
.SH "OPTIONS"
|
||||||
|
.TP
|
||||||
|
\fB\-\-help\fR
|
||||||
|
show brief help message
|
||||||
|
.TP
|
||||||
|
\fB\-\-version\fR
|
||||||
|
show version
|
||||||
|
.TP
|
||||||
|
\fB\-\-verbose\fR
|
||||||
|
more verbose output
|
||||||
|
.TP
|
||||||
|
\fB\-\-noclean\fR
|
||||||
|
do not clean packages that are missing in metadata
|
||||||
|
.TP
|
||||||
|
\fBSOURCE\fR
|
||||||
|
is http(s) url that does not include repodata part.
|
||||||
|
For example if full (index) metadata path is http://server/repo/Packages/repodata/repomd.xml
|
||||||
|
then SOURCE will be http://server/repo/Packages/ with trailing slash.
|
||||||
|
.TP
|
||||||
|
\fBDESTINATION\fR
|
||||||
|
full path to local directory, for example /var/www/repository/ with triling slash.
|
||||||
|
.SH "AUTHOR"
|
||||||
|
.TP
|
||||||
|
Sergei Fedosoff <eleksir@gmail.com> aka eleksir <eleksir@exs-elm.ru>
|
||||||
|
.SH "COPYRIGHT"
|
||||||
|
Copyright © 2018 Sergei Fedosoff. License 2 clause BSD:
|
||||||
|
https://directory.fsf.org/wiki?title=License:FreeBSD
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.B rpm (1).
|
||||||
2
docs/rrclone.crontab
Normal file
2
docs/rrclone.crontab
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# run every sunday at 4.30 in the night
|
||||||
|
30 4 * * 0 http://server/repo/packages/ /var/www/repo 1>/dev/null
|
||||||
Reference in New Issue
Block a user