首页 > 代码库 > 【CentOS】如何在线安装pcre?

【CentOS】如何在线安装pcre?

EA003317441NL

1.检查CentOS系统是否安装prce,如果已安装则会显示pcre的版本信息

[root@localhost /]# rpm -qa pcre
pcre-7.8-6.el6.i686


2.删除pcre包
[root@localhost /]# rpm -e --nodeps pcre

[root@localhost /]# rpm -qa pcre
3.在线安装pcre

[root@localhost /]# yum install pcre

4.查看pcre的安装路径

[root@localhost /]# rpm -qa pcre
pcre-7.8-6.el6.i686
[root@localhost /]# rpm -ql pcre-7.8-6.el6.i686
/lib/libpcre.so.0
/lib/libpcre.so.0.0.1
/usr/bin/pcregrep
/usr/bin/pcretest
/usr/lib/libpcrecpp.so.0
/usr/lib/libpcrecpp.so.0.0.0
/usr/lib/libpcreposix.so.0
/usr/lib/libpcreposix.so.0.0.0
/usr/share/doc/pcre-7.8
/usr/share/doc/pcre-7.8/AUTHORS
/usr/share/doc/pcre-7.8/COPYING
/usr/share/doc/pcre-7.8/ChangeLog
/usr/share/doc/pcre-7.8/LICENCE
/usr/share/doc/pcre-7.8/NEWS
/usr/share/doc/pcre-7.8/README
/usr/share/man/man1/pcre-config.1.gz
/usr/share/man/man1/pcregrep.1.gz
/usr/share/man/man1/pcretest.1.gz


本文出自 “开普技术” 博客,请务必保留此出处http://kypulo.blog.51cto.com/9227739/1537211