*** rpm -Uvh 의존성 문제
[root@localhost ~]# cd /media/cdrom/Packages/
[root@localhost Packages]# pwd
/media/cdrom/Packages
[root@localhost Packages]# ls -l mysql*
-rw-rw-r-- 2 root root 1314172 7월 4 2014 mysql-connector-java-5.1.25-3.el7.noarch.rpm
-rw-rw-r-- 2 root root 149640 7월 4 2014 mysql-connector-odbc-5.2.5-6.el7.x86_64.rpm
[root@localhost Packages]# rpm -Uvh mysql-connector-
mysql-connector-java-5.1.25-3.el7.noarch.rpm
mysql-connector-odbc-5.2.5-6.el7.x86_64.rpm
[root@localhost Packages]# rpm -Uvh mysql-connector-odbc-5.2.5-6.el7.x86_64.rpm
경고: mysql-connector-odbc-5.2.5-6.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
오류: Failed dependencies:
libodbc.so.2()(64bit) is needed by mysql-connector-odbc-5.2.5-6.el7.x86_64
libodbcinst.so.2()(64bit) is needed by mysql-connector-odbc-5.2.5-6.el7.x86_64
[root@localhost ~]# rpm -qa mc
[root@localhost ~]# yum install mc
*** yum 은 설치시에는 의존성 있는 것도 알아서 설치 하지만, 삭제할 때는
의존성 있는 것은 삭제를 안한다. 왜냐하면 의존성 파일이 다른 곳에 사용할 수 있기때문이다.
[root@localhost ~]# yum -y install mc
[root@localhost ~]# yum -y remove mc
[root@localhost ~]# mount /dev/cdrom /media/cdrom/
mount: /dev/sr0 is write-protected, mounting read-only
mount: /dev/sr0 is already mounted or /media/cdrom busy
/dev/sr0 is already mounted on /media/cdrom
[root@localhost ~]# cd /media/cdrom/
[root@localhost cdrom]# ls
CentOS_BuildTag GPL RPM-GPG-KEY-CentOS-7 images
EFI LiveOS RPM-GPG-KEY-CentOS-Testing-7 isolinux
EULA Packages TRANS.TBL repodata
[root@localhost cdrom]# cd Packages/
**** localinstall cdromm 에서 의존성 있는 것은 인턴넷에서 알아서 찾아서 설치
[root@localhost Packages]# yum localinstall mysql-connector-odbc-5.2.5-6.el7.x86_64.rpm
댓글 ( 4)
댓글 남기기