Yum equivalent to apt-get build-dep and apt-file search

[ apt-get build-dep ]

apt-get build-dep command installs required packages to build a package from a source code.

apt-get build-dep

build-dep source_pkg
Causes apt-get to install/remove packages in an attempt to satisfy the build dependencies for a source package.

In case of Fedora , yum-builddep command is equivalent to apt-get build-dep.
yum-builddep(1)                                                yum-builddep(1)

NAME
      yum-builddep

SYNOPSIS
      yum-builddep package

DESCRIPTION
      yum-builddep  is  a program which installs the RPMs needed to build the
      specified package.  The source RPM for the specified  package  must  be
      available  in a Yum repository (which will be automatically enabled, if
      it is disabled) or it can be a local source RPM file.

EXAMPLES
      Download and install all the RPMs needed to build the kernel RPM:
             yum-builddep kernel


[ apt-file search ]

apt-file search

NAME

apt-file - APT package searching utility -- command-line interface

SYNOPSIS

apt-file [ options ] [ action ] [ pattern ]

DESCRIPTION

apt-file is a command line tool for searching packages for the APT packaging system.
Some actions are required to run the search:
update
Resynchronize the package contents from their sources. The contents packages are fetched from the location(s) specified in /etc/apt/sources.list . This command attempt to fetch the Contents-<ARCH>.gz file from remote source.
search
Search in which package file is included. A list of all package containing the pattern pattern is returned.


As for Fedora , yum provides or whatprovides is equivalent to apt-file search

yum provides / whatprovides
      provides or whatprovides
             Is used to find out which package provides some feature or file.
             Just use a specific name or a file-glob-syntax wildcards to list
             the packages available or installed that provide that feature or
             file.


[root@fc17 ~]# yum provide lsof
Loaded plugins: langpacks, presto, refresh-packagekit
No such command: provide. Please use /bin/yum --help
[root@fc17 ~]# yum provides lsof
Loaded plugins: langpacks, presto, refresh-packagekit
lsof-4.85-2.fc17.x86_64 : A utility which lists open files on a Linux/UNIX
                       : system
Repo        : fedora



lsof-4.85-2.fc17.x86_64 : A utility which lists open files on a Linux/UNIX
                       : system
Repo        : @anaconda-0


[root@fc17 ~]# yum whatprovides ping
Loaded plugins: langpacks, presto, refresh-packagekit
iputils-20101006-14.fc17.x86_64 : Network monitoring tools including ping
Repo        : fedora
Matched from:
Filename    : /bin/ping



iputils-20101006-14.fc17.x86_64 : Network monitoring tools including ping
Repo        : fedora
Matched from:
Filename    : /usr/bin/ping



iputils-20101006-14.fc17.x86_64 : Network monitoring tools including ping
Repo        : @anaconda-0
Matched from:
Filename    : /bin/ping



iputils-20101006-14.fc17.x86_64 : Network monitoring tools including ping
Repo        : @anaconda-0
Matched from:
Filename    : /usr/bin/ping

[root@fc17 ~]#


http://lost-and-found-narihiro.blogspot.com/2012/09/fedora-17-yum-equivalent-to-apt-get.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值