index
Convert From CentOS 7 To CentOS Stream 8
centos 7.6 aarch 64版本下升级GLIBC,make 升级,Gcc升级
How to Install or upgrade to Kernel 6.x on CentOS Stream 8
Convert From CentOS 7 To CentOS Stream 8
yum增加repo库 yum update yum -y install epel-release. yum repolist. yum install pkg1. 列出单个库的包 yum --disablerepo="*" --enablerepo="epel" list available sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test |增加apt新库 apt update
pkg-config
pkg-config --cflags opencv #头文件 pkg-config --libs opencv #库文件 编译cpp文件: gcc -o test_event test_event.cpp -lstdc++ `pkg-config --cflags --libs libevent` pkg-config: 编译时、 链接时 LD_LIBRARY_PATH: 链接时、 运行时 pc文件的搜索路径有下列两种方式: 1.在环境变量PKG_CONFIG_PAT中指明pc文件的搜索路径 2.在/usr/lib/pkconfig/和/usr/lib64/pkconfig/文件中添加pc文件的搜索路径 库文件的搜索路径有下列两种方式: 1.在环境变量LD_LIBRARY_PATH中指明库的搜索路径 2.在/etc/ld.so.conf文件中添加库的搜索路径 ---------------------------------------------- gcc使用-Wl,-rpath选项,指定程序运行时的库搜索目录,是一个链接选项,生效于设置的环境变量之前(LD_LIBRARY_PATH)。
升级到centOS stream 8
yum update yum -y install epel-release yum -y install rpmconf yum-utils rpmconf -a package-cloeanup --leaves package-cleanup --orphans reboot -f yum -y install dnf dnf -y remove yum yum-metadata-parser rm -Rf /etc/yum mv /var/lib/rpm/__db* /tmp yum clean all dnf -y update dnf install http://vault.centos.org/8.5.2111/BaseOS/x86_64/os/Packages/{centos-linux-repos-8-3.el8.noarch.rpm,centos-linux-release-8.5-1.2111.el8.noarch.rpm,centos-gpg-keys-8-3.el8.noarch.rpm} dnf -y upgrade https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm dnf clean all rpm -e `rpm -q kernel` rpm -e --nodeps sysvinit-tools cat /etc/os-release cat /etc/centos-release dnf update dnf install centos-release-stream rpm -ql centos-release-stream dnf swap centos-{linux,stream}-repos dnf repolist cat /etc/os-release cat /etc/centos-release reboot now dnf update
升级到内核6.0
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org dnf install https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm dnf --disablerepo="*" --enablerepo="elrepo-kernel" list available dnf --enablerepo=elrepo-kernel install kernel-ml dnf --enablerepo=elrepo-kernel install kernel-ml kernel-ml-tools #dnf --enablerepo=elrepo-kernel install kernel-ml.x86_64 kernel-ml-tools.x86_64 grubby --default-kernel uname -r 查看日志 cat /var/log/dnf.log 软件仓库目录 /etc/yum.repos.d/*.repo 清理缓存 dnf clean all 重新生成缓存并查看仓库软件包 dnf repolist