Linux怎样查看YUM的装置目录上海时时乐走势图

 

 

/usr/bin/mysql_plugin

境遇这几个错误是因为尚未安装MySQL-shared-compat组件,安装了MySQL-shared-compat-advanced-5.6.20-1.rhel5.x86_64.rpm后,然后使用yum install perl-DBD-MySQL就不会碰着conflict with file的失实

[root@DB-Server ~]# rpm -qc MySQL-server-advanced-5.6.20-1.rhel5

 

/etc/logrotate.d/mysql

 

/etc/my.cnf

 

[root@DB-Server ~]# 
[root@DB-Server tmp]# rpm -ivh percona-xtrabackup-24-2.4.6-2.el5.x86_64.rpm 

warning: percona-xtrabackup-24-2.4.6-2.el5.x86_64.rpm: Header V4 DSA signature: NOKEY, key ID cd2efd2a

error: Failed dependencies:

        libev.so.4()(64bit) is needed by percona-xtrabackup-24-2.4.6-2.el5.x86_64

        perl(DBD::mysql) is needed by percona-xtrabackup-24-2.4.6-2.el5.x86_64

 

上海时时乐走势图 1

 

 

 

如上所示,既然紧缺组件,那么安装libev.x86_64, 如下所示,本地yum源安装libev.so.4失利,只好从网络下载libev-4.15-1.el5.rf.x86_64.rpm,网址为

/usr/bin/mysql_secure_installation

安装相关注重组件时,遭逢conflict with file的荒谬,如上截图所示,然后安装Percona Xtrabackup 2.4.6是就能赶过下边错误:

 

  file /usr/bin/mysql from install of mysql-5.0.77-4.el5_6.6.x86_64 conflicts with file from package MySQL-client-advanced-5.6.20-1.rhel5.x86_64

/usr/bin/mysqlimport

  file /usr/bin/msql2mysql from install of mysql-5.0.77-4.el5_6.6.x86_64 conflicts with file from package MySQL-client-advanced-5.6.20-1.rhel5.x86_64

在MySQL的合西班牙语档,你能够看来RPM包所在的设置目录。我们利用rpm -ql 相比验证了须臾间,基本都OK,可是很奇异的是,在上头那一个版本中,作者从未找到/etc/my.cnf,而是/usr/my.cnf

 

MySQL-client-advanced-5.6.20-1.rhel5

 

/usr/share/man/man1/mysqlbinlog.1.gz

 

/usr/bin/mysql_waitpid

[root@DB-Server tmp]#yum -y install perl perl-devel libaio libaio-devel perl-Time-HiRes perl-DBD-MySQL

/usr/bin/mysqlbinlog

 

/usr/bin/msql2mysql

  file /usr/bin/mysqlaccess from install of mysql-5.0.77-4.el5_6.6.x86_64 conflicts with file from package MySQL-client-advanced-5.6.20-1.rhel5.x86_64

 

 

/usr/bin/mysqldump

  file /usr/bin/mysql_find_rows from install of mysql-5.0.77-4.el5_6.6.x86_64 conflicts with file from package MySQL-client-advanced-5.6.20-1.rhel5.x86_64

 

 

-l 展现软件包中的文件列表

  file /usr/bin/mysql_waitpid from install of mysql-5.0.77-4.el5_6.6.x86_64 conflicts with file from package MySQL-client-advanced-5.6.20-1.rhel5.x86_64

 

在Red Hat Enterprise Linux Server release 5.7 (Tikanga)上使用RPM格局安装Percona Xtrabackup 2.4.6时相遇了部分主题材料,特意总计在此。

/usr/share/man/man1/mysql_waitpid.1.gz

[root@DB-Server tmp]# rpm -qa | grep -i mysql

MySQL-server-advanced-5.6.20-1.rhel5

MySQL-client-advanced-5.6.20-1.rhel5

[root@DB-Server tmp]# rpm -ivh MySQL-shared-compat-advanced-5.6.20-1.rhel5.x86_64.rpm 

Preparing...                ########################################### [100%]

   1:MySQL-shared-compat-adv########################################### [100%]

[root@DB-Server tmp]# yum install perl-DBD-MySQL

[root@DB-Server tmp]# rpm -ivh percona-xtrabackup-24-2.4.6-2.el5.x86_64.rpm 

warning: percona-xtrabackup-24-2.4.6-2.el5.x86_64.rpm: Header V4 DSA signature: NOKEY, key ID cd2efd2a

Preparing...                ########################################### [100%]

   1:percona-xtrabackup-24  ########################################### [100%]

[root@DB-Server tmp]# 

 

 

 

 

/usr/share/man/man1/mysqldump.1.gz

[root@DB-Server tmp]# yum -y install libev.x86_64

Loaded plugins: product-id, security, subscription-manager

Updating Red Hat repositories.

Setting up Install Process

No package libev.x86_64 available.

Nothing to do

 

 

[root@DB-Server tmp]# rpm -ivh libev-4.15-1.el5.rf.x86_64.rpm 

warning: libev-4.15-1.el5.rf.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6

Preparing...                ########################################### [100%]

   1:libev                  ########################################### [100%]

[root@DB-Server tmp]# yum list | grep "perl-DBD-MySQL"

perl-DBD-MySQL.x86_64                      3.0007-2.el5                media   

[root@DB-Server tmp]# yum install perl-DBD-MySQL

 

 

 

 

以MySQL的设置为例,大家选拔RPM情势安装了MySQL的八个包,其实rpm有多个参数-l和-c能够帮忙大家查阅具体的设置路径。

 

/usr/share/man/man1/mysqlimport.1.gz

安装 perl-DBD-MySQL时,就能够遭逢大批量看似上面错误

/usr/bin/mysqld_multi

上海时时乐走势图 2

 

/usr/bin/mysqlbug

除此以外一台测量试验服务器,使用yum安装了mysql-community-server-5.7.18,测量试验申明开采又是健康。 近年来不了解那个细节难题。

/usr/bin/mysqlshow

/usr/share/man/man1/mysqlslap.1.gz

/usr/bin/mysql_find_rows

/usr/bin/myisampack

/usr/bin/mysql_fix_extensions

/usr/bin/myisamchk

/usr/bin/myisam_ftdump

[root@DB-Server tmp]# rpm -ql MySQL-server-advanced-5.6.20-1.rhel5

/usr/bin/mysqlaccess.conf

MySQL 5.6

 

上海时时乐走势图 3

/usr/share/man/man1/mysqlcheck.1.gz

 

/usr/bin/mysql

 

/usr/share/man/man1/mysqlshow.1.gz

/usr/bin/mysql_tzinfo_to_sql

/usr/bin/mysql_config_editor

/usr/bin/innochecksum

MySQL 5.7

/etc/my.cnf

/etc/logrotate.d/mysql

/usr/bin/mysqltest

/usr/bin/myisamlog

/usr/share/man/man1/mysqlaccess.1.gz

[root@DB-Server ~]# rpm -qa | grep -i mysql

/usr/share/man/man1/mysqladmin.1.gz

 

/usr/bin/mysqldumpslow

/usr/bin/mysql_zap

MySQL-server-advanced-5.6.20-1.rhel5

 

/usr/share/man/man1/mysql_config_editor.1.gz

-c 显示配置文件列表

/usr/bin/mysqladmin

/usr/bin/my_print_defaults

/usr/share/man/man1/mysql_find_rows.1.gz

Files or Resources

Location

Client programs and scripts

/usr/bin

mysqld server

/usr/sbin

Configuration file

/etc/my.cnf

Data directory

/var/lib/mysql

Error log file

For RHEL, Oracle Linux, CentOS or Fedora platforms: /var/log/mysqld.log

For SLES: /var/log/mysql/mysqld.log

Value of secure_file_priv

/var/lib/mysql-files

System V init script

For RHEL, Oracle Linux, CentOS or Fedora platforms: /etc/init.d/mysqld

For SLES: /etc/init.d/mysql

Systemd service

For RHEL, Oracle Linux, CentOS or Fedora platforms: mysqld

For SLES: mysql

Pid file

/var/run/mysql/mysqld.pid

Socket

/var/lib/mysql/mysql.sock

Keyring directory

/var/lib/mysql-keyring

Unix manual pages

/usr/share/man

Include (header) files

/usr/include/mysql

Libraries

/usr/lib/mysql

Miscellaneous support files (for example, error messages, and character set files)

/usr/share/mysql

/usr/share/man/man1/msql2mysql.1.gz

/usr/bin/mysql_install_db

那么我们得以应用“rpm -ql  包名”来查看具体的安装路线。如下所示:

 

/usr/bin/mysql_upgrade

  Directory

Contents of Directory

/etc

一些配置文件的目录,例如/etc/init.d/mysql

 

/usr/bin

一些可执行文件

/usr/lib

一些程序使用的动态函数库

/usr/share/doc

一些基本的软件使用手册与帮助文档

/usr/share/man

一些man page文件

/usr/bin/mysqld_safe

/usr/bin/mysqlaccess

Directory

Contents of Directory

/usr/bin

Client programs and scripts

/usr/sbin

The mysqld server

/var/lib/mysql

Log files, databases

/var/lib/mysql-files

Value of secure_file_priv

/usr/share/info

MySQL manual in Info format

/usr/share/man

Unix manual pages

/usr/include/mysql

Include (header) files

/usr/lib/mysql

Libraries

/usr/share/mysql

Miscellaneous support files, including error messages, character set files, sample configuration files, SQL for database installation

/usr/share/sql-bench

Benchmarks

 

 

要是选拔RPM安装了有的包,常常的话,RPM私下认可安装路线如下:

上海时时乐走势图 4

[root@DB-Server ~]# rpm -ql MySQL-client-advanced-5.6.20-1.rhel5

Linux下什么查看使用YUM安装过的包的安装路线呢? 在搞精晓这几个题如今,大家先来打听一下YUM。 YUM(全名称叫 Yellow dog Updater, Modified)是三个在Fedora和RedHat以致CentOS中的Shell前端软件包管理器。基于RPM包管理,能够从钦定的服务器自动下载RPM包何况安装,能够自动管理依赖性关系,并且三回安装具有注重的软件包,制止了手动安装的难为(寻觅资源、下载;放到内定目录安装;管理注重关系并下载注重关系的包进行设置)。所以用yum安装,实质上是用RPM安装,所以RPM查询新闻的命令都可用。

/usr/share/man/man1/mysql.1.gz

/usr/bin/mysqlslap

/etc/init.d/mysql

 

/usr/bin/mysql_convert_table_format

.....................................................

/usr/bin/mysqlhotcopy

/usr/bin/mysqlcheck

本文由上海时时乐走势图发布于上海时时乐走势图,转载请注明出处:Linux怎样查看YUM的装置目录上海时时乐走势图

您可能还会对下面的文章感兴趣: