1reposync(1) reposync(1)
2
3
4
6 reposync - synchronize yum repositories to a local directory
7
9 reposync [options]
10
12 reposync is used to synchronize a remote yum repository to a local
13 directory, using yum to retrieve the packages.
14
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. x86_64 is a superset for
25 i*86.).
26
27 --source
28 Also download .src.rpm files.
29
30 -r REPOID, --repoid=REPOID
31 Specify repo ids to query, can be specified multiple times
32 (default is all enabled).
33
34 -e CACHEDIR, --cachedir CACHEDIR
35 Directory in which to store metadata.
36
37 -t, --tempcache
38 Use a temp dir for storing/accessing yum-cache.
39
40 -d, --delete
41 Delete local packages no longer present in repository.
42
43 -p DESTDIR, --download_path=DESTDIR
44 Path to download packages to: defaults to current directory.
45
46 --norepopath
47 Don't add the reponame to the download path. Can only be used
48 when syncing a single repository (default is to add the repon‐
49 ame).
50
51 -g, --gpgcheck
52 Remove packages that fail GPG signature checking after download‐
53 ing. exit status is '1' if at least one package was removed.
54
55 -u, --urls
56 Just list urls of what would be downloaded, don't download.
57
58 -l, --plugins
59 Enable yum plugin support.
60
61 -m, --downloadcomps
62 Also download comps.xml.
63
64 --download-metadata
65 Download all the non-default metadata
66
67 -n, --newest-only
68 Download only newest packages per-repo.
69
70 -q, --quiet
71 Output as little information as possible.
72
73 --allow-path-traversal
74 Allow packages stored outside their repo directory to be synced.
75 These are packages that are referenced in metadata by using
76 absolute paths or up-level ".." symbols, and are normally
77 skipped by reposync for security reasons.
78
79 CAUTION: Using this option has potential security implications
80 since, by providing malicious repodata, an attacker could make
81 reposync write to arbitrary locations on the file system that
82 are accessible by the user running it.
83
85 Sync all packages from the 'updates' repo to the current directory:
86 reposync --repoid=updates
87
88 Sync only the newest packages from the 'updates' repo to the current
89 directory:
90 reposync -n --repoid=updates
91
92 Sync packages from the 'updates' and 'extras' repos to the current
93 directory:
94 reposync --repoid=updates --repoid=extras
95
96 Sync all packages from the 'updates' repo to the repos directory:
97 reposync -p repos --repoid=updates
98
99 Sync all packages from the 'updates' repo to the repos directory
100 excluding x86_64 arch. Edit /etc/yum.conf adding option
101 exclude=*.x86_64. Then:
102 reposync -p repos --repoid=updates
103
105 reposync uses the yum libraries for retrieving information and pack‐
106 ages. If no configuration file is specified, the default yum configura‐
107 tion will be used.
108
109 /etc/yum.conf
110 /etc/yum/repos.d/
111
113 yum.conf [4m(5)
114 http://yum.baseurl.org/
115
117 See the Authors file included with this program.
118
119
121 There are of course no bugs, but should you find any, you should first
122 consult the FAQ section on http://yum.baseurl.org/wiki/Faq and if
123 unsuccessful in finding a resolution contact the mailing list: yum-
124 devel@lists.baseurl.org. To file a bug use http://bugzilla.redhat.com
125 for Fedora/RHEL/Centos related bugs and http://yum.baseurl.org/report
126 for all other bugs.
127
128
129
130
131 27 April 2007 reposync(1)