1reposync(1)                                                        reposync(1)
2
3
4

NAME

6       reposync - synchronize yum repositories to a local directory
7

SYNOPSIS

9       reposync [options]
10

DESCRIPTION

12       reposync  is  used  to  synchronize  a remote yum repository to a local
13       directory, using yum to retrieve the packages.
14

OPTIONS

16       -h, --help
17              Display a help message, and then quit.
18
19       -c CONFIG, --config=CONFIG
20              Config file to use (defaults to /etc/yum.conf).
21
22       -a ARCH, --arch=ARCH
23              Act as if running the specified  arch  (default:  current  arch,
24              note: does not override $releasever).
25
26       --source
27              Also download .src.rpm files.
28
29       -r REPOID, --repoid=REPOID
30              Specify  repo  ids  to  query,  can  be specified multiple times
31              (default is all enabled).
32
33       -e CACHEDIR, --cachedir CACHEDIR
34              Directory in which to store metadata.
35
36       -t, --tempcache
37              Use a temp dir for storing/accessing yum-cache.
38
39       -d, --delete
40              Delete local packages no longer present in repository.
41
42       -p DESTDIR, --download_path=DESTDIR
43              Path to download packages to: defaults to current directory.
44
45       --norepopath
46              Don't add the reponame to the download path.  Can only  be  used
47              when  syncing  a single repository (default is to add the repon‐
48              ame).
49
50       -g, --gpgcheck
51              Remove packages that fail GPG signature checking after download‐
52              ing.
53
54       -u, --urls
55              Just list urls of what would be downloaded, don't download.
56
57       -l, --plugins
58              Enable yum plugin support.
59
60       -m, --downloadcomps
61              Also download comps.xml.
62
63       -n, --newest-only
64              Download only newest packages per-repo.
65
66       -q, --quiet
67              Output as little information as possible.
68
69       --allow-path-traversal
70              Allow packages stored outside their repo directory to be synced.
71              These are packages that are  referenced  in  metadata  by  using
72              absolute  paths  or  up-level  ".."  symbols,  and  are normally
73              skipped by reposync for security reasons.
74
75              CAUTION: Using this option has potential  security  implications
76              since,  by  providing malicious repodata, an attacker could make
77              reposync write to arbitrary locations on the  file  system  that
78              are accessible by the user running it.
79

EXAMPLES

81       Sync all packages from the 'updates' repo to the current directory:
82               reposync --repoid=updates
83
84       Sync  only  the  newest packages from the 'updates' repo to the current
85       directory:
86               reposync -n --repoid=updates
87
88       Sync packages from the 'updates' and  'extras'  repos  to  the  current
89       directory:
90               reposync --repoid=updates --repoid=extras
91
92       Sync all packages from the 'updates' repo to the repos directory:
93               reposync -p repos --repoid=updates
94

FILES

96       reposync  uses  the  yum libraries for retrieving information and pack‐
97       ages. If no configuration file is specified, the default yum configura‐
98       tion will be used.
99
100       /etc/yum.conf
101       /etc/yum/repos.d/
102

SEE ALSO

104       yum.conf (5)
105       http://yum.baseurl.org/
106

AUTHORS

108       See the Authors file included with this program.
109
110

BUGS

112       There  are of course no bugs, but should you find any, you should first
113       consult the  FAQ  section  on  http://yum.baseurl.org/wiki/Faq  and  if
114       unsuccessful  in  finding  a  resolution contact the mailing list: yum-
115       devel@lists.baseurl.org.  To file a bug use  http://bugzilla.redhat.com
116       for  Fedora/RHEL/Centos  related bugs and http://yum.baseurl.org/report
117       for all other bugs.
118
119
120
121
122                                 27 April 2007                     reposync(1)
Impressum