Linux command
dnf-reposync 命令
网络
需要网络或远程资源。
常用示例
Synchronize
dnf reposync --repoid [repo_name]
Example
dnf reposync --repoid [repo_name] -p [path/to/directory]
Example
dnf reposync --repoid [repo_name] --download-metadata
Example
dnf reposync --repoid [repo_name] -n
Print URLs
dnf reposync --repoid [repo_name] -u
Example
dnf reposync --repoid [repo_name] --remote-time
说明
dnf reposync synchronizes packages and metadata from remote DNF repositories to a local directory. Part of dnf-plugins-core. Useful for creating local mirrors or offline repositories.
参数
- --repoid _repo_
- Repository to sync
- -p, --download-path _path_
- Download destination
- --download-metadata
- Also download repository metadata
- -n, --newest-only
- Only download newest package versions
- -u, --urls
- Print URLs instead of downloading
- --remote-time
- Preserve remote timestamps
FAQ
What is the dnf-reposync command used for?
dnf reposync synchronizes packages and metadata from remote DNF repositories to a local directory. Part of dnf-plugins-core. Useful for creating local mirrors or offline repositories.
How do I run a basic dnf-reposync example?
Run `dnf reposync --repoid [repo_name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --repoid _repo_ do in dnf-reposync?
Repository to sync