• 查看yum使用方法,其中--downloadonly--downloaddir=两个参数是我们需要使用的
yum -h
[root@iZ2ze2y6fwj9mvujtsiya3Z repo]# yum -h
Loaded plugins: fastestmirror
Usage: yum [options] COMMANDList of Commands:check          Check for problems in the rpmdb
check-update   Check for available package updates
clean          Remove cached data
deplist        List a package's dependencies
distribution-synchronization Synchronize installed packages to the latest available versions
downgrade      downgrade a package
erase          Remove a package or packages from your system
fs             Acts on the filesystem data of the host, mainly for removing docs/lanuages for minimal hosts.
fssnapshot     Creates filesystem snapshots, or lists/deletes current snapshots.
groups         Display, or use, the groups information
help           Display a helpful usage message
history        Display, or use, the transaction history
info           Display details about a package or group of packages
install        Install a package or packages on your system
list           List a package or groups of packages
load-transaction load a saved transaction from filename
makecache      Generate the metadata cache
provides       Find what package provides the given value
reinstall      reinstall a package
repo-pkgs      Treat a repo. as a group of packages, so we can install/remove all of them
repolist       Display the configured software repositories
search         Search package details for the given string
shell          Run an interactive yum shell
swap           Simple way to swap packages, instead of using shell
update         Update a package or packages on your system
update-minimal Works like upgrade, but goes to the 'newest' package match which fixes a problem that affects your system
updateinfo     Acts on repository update information
upgrade        Update packages taking obsoletes into account
version        Display a version for the machine and/or available repos.Options:-h, --help            show this help message and exit-t, --tolerant        be tolerant of errors-C, --cacheonly       run entirely from system cache, don't update cache-c [config file], --config=[config file]config file location-R [minutes], --randomwait=[minutes]maximum command wait time-d [debug level], --debuglevel=[debug level]debugging output level--showduplicates      show duplicates, in repos, in list/search commands-e [error level], --errorlevel=[error level]error output level--rpmverbosity=[debug level name]debugging output level for rpm-q, --quiet           quiet operation-v, --verbose         verbose operation-y, --assumeyes       answer yes for all questions--assumeno            answer no for all questions--version             show Yum version and exit--installroot=[path]  set install root--enablerepo=[repo]   enable one or more repositories (wildcards allowed)--disablerepo=[repo]  disable one or more repositories (wildcards allowed)-x [package], --exclude=[package]exclude package(s) by name or glob--disableexcludes=[repo]disable exclude from main, for a repo or foreverything--disableincludes=[repo]disable includepkgs for a repo or for everything--obsoletes           enable obsoletes processing during updates--noplugins           disable Yum plugins--nogpgcheck          disable gpg signature checking--disableplugin=[plugin]disable plugins by name--enableplugin=[plugin]enable plugins by name--skip-broken         skip packages with depsolving problems--color=COLOR         control whether color is used--releasever=RELEASEVERset value of $releasever in yum config and repo files--downloadonly        don't update, just download--downloaddir=DLDIR   specifies an alternate directory to store packages--setopt=SETOPTS      set arbitrary config and repo options--bugfix              Include bugfix relevant packages, in updates--security            Include security relevant packages, in updates--advisory=ADVS, --advisories=ADVSInclude packages needed to fix the given advisory, inupdates--bzs=BZS             Include packages needed to fix the given BZ, inupdates--cves=CVES           Include packages needed to fix the given CVE, inupdates--sec-severity=SEVS, --secseverity=SEVSInclude security relevant packages matching theseverity, in updatesPlugin Options:
  • 使用--downloadonly --downloaddir
cd /home
mkdir repo
yum install --downloadonly --downloaddir=/home/repo xxx

Centos 7 | yum下载rpm及其依赖 | downloadonly | downloaddir相关推荐

  1. 7.6 yum更换国内源 7.7 yum下载rpm包 7.8/7.9 源码包安装

    2019独角兽企业重金招聘Python工程师标准>>> 7.6.yum更换国内源 自定义yum源: [root@bogon ~]# cd /etc/yum.repos.d [root ...

  2. yum更换国内源、yum下载rpm包、源码包安装

    2019独角兽企业重金招聘Python工程师标准>>> 更换yum仓库源 cd /etc/yum.repos.d/ rm -f dvd.repo wget http://mirror ...

  3. Linux学习笔记(二十二)yum更换国内源、yum下载rpm包、源码包安装

    一.yum更换国内源 首先 cd /etc/yum.repos.d/ rm -f dvd.repo 删除之前添加的本地仓库,将原来的仓库恢复回来 cp /etc/yum.repos.d.bak/* / ...

  4. CentOS 安装软件 下载rpm安装包

    CentOS 安装软件 下载rpm安装包 0.目的 1. 配置yum源 2. 下载rpm包 3. 安装前准备工作 4. 内网服务器安装RPM 0.目的 做实验的时候经常需要通过外网的yum仓库下载并安 ...

  5. 更换yum源,安装扩展源,yum下载rpm包,源码包安装软件

    2019独角兽企业重金招聘Python工程师标准>>> 更换国内yum源 我们的Linux中默认的yum源是国外的,有的时候网络不好,而我么需要下载的包过大的时候更换成国内的yum源 ...

  6. linux yum下载RPM包后再安装LAMP环境

    1.下载yum插件 yum-downloadonly,实现只下载软件包的功能. yum install yum-downloadonly 或者 yum install yum-plugin-downl ...

  7. linux repo 源下载地址,yum更换国内源及yum下载rpm包

    一.yum更换国内源 1.前往yum文件路径地址 [root@web1 ~]# cd /etc/yum.repos.d/ [root@web1 yum.repos.d]# ls CentOS-Base ...

  8. yum 下载全量依赖 rpm 包及离线安装(终极解决方案)

    简介 通常生产环境由于安全原因都无法访问互联网.此时就需要进行离线安装,主要有两种方式:源码编译.rpm包安装.源码编译耗费时间长且缺乏编译环境,所以一般都选择使用离线 rpm 包安装. 验证环境 C ...

  9. CentOS系统自动下载RPM包及其所有依赖的包(离线部署)

    前几天我尝试去创建一个仅包含我们经常在 CentOS 7 下使用的软件的本地仓库.当然,我们可以使用 curl 或者 wget 下载任何软件包,然而这些命令并不能下载要求的依赖软件包.你必须去花一些时 ...

最新文章

  1. 零基础入门--中文命名实体识别(BiLSTM+CRF模型,含代码)
  2. 找不到媳妇给愁的。。。
  3. C#的控件输入法变换
  4. 如何日赚100万美金?(附“标准”答案)
  5. Redis 命令--Redis集合(Set)
  6. 7-4 统计工龄 (20 分)(C语言实现)
  7. PostgreSQL全局临时表插件pgtt的使用
  8. erp服务器系统分区多大,云服务器的存储容量有多大
  9. 非常实用的面试题,也可以当作学习资料(转载)
  10. js 延迟几秒执行_息息相关的 JS 同步,异步和事件轮询
  11. NBA历史上50大巨星2
  12. docker复习:CVE-2016-10033验证
  13. AXI4总线协议总结
  14. p=p-next 表达了什么意思
  15. 不规则数据排序 Python sort sorted
  16. 如何实现对网站页面访问量的统计?
  17. 免费wifi帮助文档
  18. java 拼音首字母_java获取中文拼音首字母的实例
  19. js html5 音乐播放器代码大全,js实现简单音乐播放器
  20. SVN 服务端 和 客户端(转)

热门文章

  1. 【机构改革】一图看懂市自然资源部门机构重组
  2. 计算机语言一通百通,15条关于一通百通的经典语句
  3. 武汉大学计算机学院历任院长,胡瑞敏 - 教师简历 CV- 武汉大学计算机学院
  4. 人妖为什么要和美女打架?
  5. 【笔记】Linux安装RabbitMQ
  6. docker学习篇(13)--网络基础
  7. CNN卷土重来!超越Transformer!FAIR重新设计纯卷积架构:ConvNeXt
  8. Iphone13区别
  9. 怎么学JavaScript?来自前辈的分享
  10. 虚拟主机怎么做云服务器,云服务器怎么弄成虚拟主机