given a package name, how do I find the "yum" command to install it?
am 04.12.2007 07:36:48 von Bennett Haselton
How do I find the mapping between a PHP package name like
HTTP_Request, and the "yum" command to install it on CentOS 4.4?
For example when I needed to use LWP::UserAgent to use in Perl, the
command was
yum install -y perl-libwww-perl
but I still don't remember how I found that out, I think someone just
told me. I never found how to get the mapping between the package
name "LWP::UserAgent" and the yum argument "perl-libwww-perl".
In the case of PHP packages, is there a similar mapping and how would
I find it for a given package?
Re: given a package name, how do I find the "yum" command to installit?
am 04.12.2007 07:50:07 von Piotr Siudak
Bennett Haselton pisze:
> How do I find the mapping between a PHP package name like
> HTTP_Request, and the "yum" command to install it on CentOS 4.4?
>
yum search HTTP_Request
> For example when I needed to use LWP::UserAgent to use in Perl, the
> command was
> yum install -y perl-libwww-perl
> but I still don't remember how I found that out, I think someone just
> told me. I never found how to get the mapping between the package
> name "LWP::UserAgent" and the yum argument "perl-libwww-perl".
>
> In the case of PHP packages, is there a similar mapping and how would
> I find it for a given package?
it is
php-pear-HTTP-Request
--
Piotr Siudak
Re: given a package name, how do I find the "yum" command to install
am 05.12.2007 02:58:23 von Bennett Haselton
On Dec 3, 10:50 pm, Piotr Siudak wrote:
> Bennett Haselton pisze:
>
> > How do I find the mapping between a PHP package name like
> > HTTP_Request, and the "yum" command to install it on CentOS 4.4?
>
> yum search HTTP_Request
I tried that and I got "No Matches found":
[root@D2585 ~]# yum search HTTP_Request
Searching Packages:
Setting up repositories
update 100% |=========================| 951 B
00:00
base 100% |=========================| 1.1 kB
00:00
addons 100% |=========================| 951 B
00:00
extras 100% |=========================| 1.1 kB
00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 165 kB
00:00
update : ################################################## 510/510
Added 18 new packages, deleted 0 old in 0.99 seconds
No Matches found
> > For example when I needed to use LWP::UserAgent to use in Perl, the
> > command was
> > yum install -y perl-libwww-perl
> > but I still don't remember how I found that out, I think someone just
> > told me. I never found how to get the mapping between the package
> > name "LWP::UserAgent" and the yum argument "perl-libwww-perl".
>
> > In the case of PHP packages, is there a similar mapping and how would
> > I find it for a given package?
>
> it is
> php-pear-HTTP-Request
I tried that and got "No Match for argument: php-pear-HTTP-Request":
[root@D2585 ~]# yum install php-pear-HTTP-Request
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: php-pear-HTTP-Request
Nothing to do
In fact Google only lists *one* match for "yum install php-pear-HTTP-
Request" on the entire Web:
http://forge.vtiger.com/docman/view.php/114/174/How%20to%20i nstall%20vTiger%20and%20integrate%20with%20Cas.doc
Are you sure this is the most common way of doing this?
The ONLY thing I want to do is have a PHP script that's able to access
a remote URL and test whether it exists (i.e. gives 404 or not). Is
this the simplest way?
-Bennett