Skip to content

Commit e0ff2ea

Browse files
authored
dnf-reposync: add page (#18729)
* dnf-reposync: add page Added dnf-reposync * Update dnf-reposync.md Replaced 'the_repo' with 'repo_name' and removed the = after --repoid * Update dnf-reposync.md mentioned --repoid first in commands * Clarify dnf reposync command descriptions
1 parent d374631 commit e0ff2ea

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

pages/linux/dnf-reposync.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# dnf reposync
2+
3+
> Synchronize packages and metadata of a remote DNF repository to a local directory.
4+
> Not default to `dnf` but supported via `dnf-plugins-core`.
5+
> See also: `dnf`.
6+
> More information: <https://dnf-plugins-core.readthedocs.io/en/latest/reposync.html>.
7+
8+
- Synchronize all packages from the repository with id `repo_name` to a subdirectory `repo_name` of the current working directory:
9+
10+
`dnf reposync --repoid {{repo_name}}`
11+
12+
- Synchronize all packages and define a custom save location:
13+
14+
`dnf reposync --repoid {{repo_name}} {{[-p|--download-path]}} {{path/to/directory}}`
15+
16+
- Synchronize all packages and metadata:
17+
18+
`dnf reposync --repoid {{repo_name}} --download-metadata`
19+
20+
- Download only newest packages per-repo:
21+
22+
`dnf reposync --repoid {{repo_name}} {{[-n|--newest-only]}}`
23+
24+
- Just print URLs of what would be downloaded, don’t download:
25+
26+
`dnf reposync --repoid {{repo_name}} {{[-u|--urls]}}`
27+
28+
- Try to set the timestamps of the downloaded files to those on the remote side:
29+
30+
`dnf reposync --repoid {{repo_name}} --remote-time`

0 commit comments

Comments
 (0)