1. Installing source package with YUM
To install source package with YUM you have to install yum-utils
yum install yum-utils
then, just use yumdownloader:
yumdownloader --source packagename
example: use '$ sudo yum install net-tools' to download
net-tools-2.0-0.2.20121106git.fc18.src.rpm
2. Uncompressing / unpacking of source
Source RPM archives (.src.rpm)
SRPM archives usually don't need to be unpacked before using
them (see Section 6>). In the rare case that you really want
to unpack an RPM (regardless whether it is a source or binary
RPM), you could do it as follows (note that you need the
utilities rpm2cpio and cpio):
rpm2cpio foo.rpm | cpio -idmv --no-absolute-filenames
In the case of a source RPM, the content will likely turn out
to be two files — a .spec file and a tarball (see above).
Tip TIP
If you simply want to list the contents of an RPM package file, you can do that with
rpm --query --list -p foo.rpm
yum 如何下載source
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
C#下載網絡文件的方法
jackywei1987
2019-02-23 13:51:42
ORACLE 10G 官方下載鏈接
bingun
2019-02-23 13:12:43
linux上安裝Docker(非常簡單的安裝方法)
幸運券發放
2019-02-24 19:38:01
Error response from daemon: OCI runtime create failed
uiz
2019-02-24 13:44:10
yum源配置
Knight4NUI
2019-02-23 14:02:46
YumRepo Error: All mirror URLs are not using
lovelei
2019-02-23 13:55:14
yum報錯"This system is not registered with RHN"
Charles0914
2019-02-23 13:48:41
LAMP開發入門一 —— linux初識
princewell
2019-02-23 13:29:59
RHEL5 本地yum
loip125
2019-02-23 13:29:06
2011/01/02
sevenLZ
2019-02-23 13:23:29
screen、yum及sudo的用法
sevenLZ
2019-02-23 13:18:00
yum
a1150085757
2019-02-23 12:56:05