linux kylin系统
Last updated on November 20, 2024 am
🧙 Questions
麒麟系统相关命令
☄️ Ideas
查看版本号
cat /etc/kylin-release
cat /etc/lsb-release
cat /etc/os-release
cat /proc/version
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.5 LTS"
DISTRIB_KYLIN_RELEASE=V10
DISTRIB_VERSION_TYPE=enterprise
DISTRIB_VERSION_MODE=normal
麒麟原文件
DISTRIB_ID=Kylin
DISTRIB_RELEASE=V10
DISTRIB_CODENAME=juniper
DISTRIB_DESCRIPTION="Kylin V10"
DISTRIB_KYLIN_RELEASE=V10
DISTRIB_VERSION_TYPE=enterprise
DISTRIB_VERSION_MODE=normal
centos的os文件
vim /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
vim /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
软件下载
dists 是索引
pool 是实际的安装包
搜索软件包
dnf search <package>
dnf search crypto
dnf remove openssl
查看库
ldconfig
ldconfig -p | grep libcrypto.so
ldconfig -p | grep libssl.so
安装openssl
rpm -ivh openssl-libs-1.0.2k-19.el7.x86_64.rpm --force
添加软件仓库
vim /etc/yum.repos.d/kylin_x86_64.repo
[sp2-os]
name=ks10-sp2-os
baseurl=http://172.31.2.31:8088/ks10-adv-os
enabled=1
gpgcheck=0
[sp2-update]
name=ks10-sp2-updates
baseurl=http://172.31.2.31:8088/ks10-adv-updates
enabled=1
gpgcheck=0
sudo yum clean all && yum makecache
INSERT INTO `PARCELS` (
`PARCEL_ID`,
`PRODUCT`,
`VERSION`,
`OS`,
`FILENAME`,
`HASH`,
`BINARY_DIFF`,
`STATUS`,
`OPTIMISTIC_LOCK_VERSION`,
`SOURCE`,
`RELEASE_INSTANT`,
`DOWNLOAD_INSTANT`,
`RELEASE_ID`
) VALUES (
'7',
'CDH',
'6.2.0-1.cdh6.2.0.p0.967373',
'unknown',
'CDH-6.2.0-1.cdh6.2.0.p0.967373-unknown.parcel',
'e9c8328d8c370517c958111a3db1a085ebace237',
b'0',
'AVAILABLE',
'4',
'http://cdh-master:30108/cdh6_parcel/',
NULL,
NULL,
'1'
);
cp CDH-6.2.0-1.cdh6.2.0.p0.967373-el7.parcel CDH-6.2.0-1.cdh6.2.0.p0.967373-unknown.parcel
cp CDH-6.2.0-1.cdh6.2.0.p0.967373-el7.parcel.sha CDH-6.2.0-1.cdh6.2.0.p0.967373-unknown.parcel.sha
cd /opt/cloudera/parcel-repo
cp CDH-6.2.0-1.cdh6.2.0.p0.967373-el7.parcel CDH-6.2.0-1.cdh6.2.0.p0.967373-unknown.parcel
cp CDH-6.2.0-1.cdh6.2.0.p0.967373-el7.parcel.sha CDH-6.2.0-1.cdh6.2.0.p0.967373-unknown.parcel.sha
cp CDH-6.2.0-1.cdh6.2.0.p0.967373-el7.parcel.torrent CDH-6.2.0-1.cdh6.2.0.p0.967373-unknown.parcel.torrent
修改mainfest.json文件
🔗 Links
linux kylin系统
https://ispong.isxcode.com/os/linux/linux kylin系统/