lost and found ( for me ? )

Fedora 17 : 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 ~]#

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.