release
520nobody
这个作者很懒,什么都没留下…
展开
-
initrd.img文件的解压 原创
2.6内核中的initrd.img采用cpio压缩,不再是2.4内核使用的ext2格式,无法使用mount -o loop 挂载。需要使用gunzip解压缩,然后再使用cpio解包。通过以上命令就将 initrd.img解压了,现在就可以对其进行编辑,完成后使用以下命令重新压制。jiulu2010-08-01 07:29:29博主文章分类:linux。文章标签职场休闲initrd.img文件的解压文章分类运维阅读数3662。再将其改名拷贝至/boot目录,重启就可以观察修改后的效果。原创 2023-09-19 16:34:18 · 382 阅读 · 0 评论 -
个人打patch示范
linux原创 2022-09-27 00:46:20 · 245 阅读 · 0 评论 -
centos8系module软件包管理仓库部署
简述·CentOS8 引入新的module软件包管理机制,下面将介绍如何部署搭建本地module源。原创 2022-01-17 01:32:49 · 3512 阅读 · 2 评论 -
createrepo
createrepo 是一个对rpm 文件进行索引建立的工具。大体功能就是对指定目录下的rpm文件进行检索,把每个rpm文件的信息存储到指定的索引文件中,这样方便远程yum命令在安装更新时进行检索。看下createrepo支持的几个参数:-u --baseurl Optional base url location for all files. (not used by any clientsat this time) -o --outpu转载 2021-10-28 17:39:26 · 4296 阅读 · 0 评论 -
创建模块化存储库
创建模块化存储库模块化存储库分为两个步骤:使用创建仓库 createrepo_c使用以下方法添加模块化元数据(modulemd) modifyrepo_c警告:模块化存储库必须在仓库数据中包含模块化元数据(modulemd)。排除元数据将导致所有模块化程序包成为独立程序包,这可能会带来负面影响。要使用RPM软件包创建存储库,请运行:$ createrepo_c DIRECTORYDIRECTORY :带有RPM软件包的目录的路径,该软件包将转换为存储库要添加模块化元数据(modulemd)原创 2021-10-12 18:31:04 · 581 阅读 · 0 评论 -
centos repo aarch64汇总
镜像下载地址centos7.1.1503:https://mirrors.aliyun.com/centos-vault/altarch/7.1.1503/isos/aarch64/CentOS-7-aarch64-Everything.isocentos7.2.1511:https://mirrors.aliyun.com/centos-vault/altarch/7.2.1511/isos/aarch64/CentOS-7-aarch64-Everything.isocentos7.2.1603:原创 2021-09-10 00:01:46 · 546 阅读 · 0 评论 -
centos repo汇总
镜像下载地址centos7.0:https://mirrors.aliyun.com/centos-vault/7.0.1406/isos/x86_64/CentOS-7.0-1406-x86_64-Everything.isocentos7.1:https://mirrors.aliyun.com/centos-vault/7.1.1503/isos/x86_64/CentOS-7-x86_64-Everything-1503-01.isocentos7.2:https://mirrors.a原创 2021-09-10 00:00:37 · 129 阅读 · 0 评论 -
C语言编译报错
报错一:checking for cl.exe… no configure: error: in /disk1/ltp': configure: error: no acceptable C compiler found in $PATH Seeconfig.log’ for more detailsyum install -y gcc原创 2021-08-18 13:28:02 · 289 阅读 · 0 评论 -
Linux第三方源
centos7[docker-ce-stable]name=Docker CE Stable - $basearchbaseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/$releasever/$basearch/stableenabled=1gpgcheck=1gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg[epel]name=Extra Packag原创 2021-08-17 23:24:21 · 128 阅读 · 0 评论 -
Release~打包报错:specfile如果去掉arch不要的requires
如果不需要qt5-qtbase-devel这个依赖当不需要valgrind依赖原创 2021-08-13 17:46:15 · 87 阅读 · 0 评论 -
Release~打包报错:Executing(%license):阶段找不到文件:(一)
原创 2021-08-13 17:40:48 · 99 阅读 · 0 评论 -
yum安装报错分析思路
测试fail:【重要经验】针对测试中如果出现错误,一般两种情况:– 第一种就是包需要的requires 的确是 missing,这个时候需要在koji继续触发缺失包的编译– 第二种就是包 编译的有问题了, 编译的时候可以基于了错误的buildrequires 的version 这个时候有些包就必须得按照一定的顺序遍了(bump)install 碰到依赖低版本requires问题,处理流程!!!第一步: 验证该依赖是否合理,可以参考 相同厂商相关binary(例如 查看对应oracle的版本)检验原创 2021-08-13 17:30:57 · 519 阅读 · 0 评论 -
rpmdb库宕了,如何重新rebuild:
【解决办法:重新构建rpm数据库】[root@cly ~]# cd /var/lib/rpm[root@cly rpm]# lsBasenames __db.001 __db.003 Group Name Packages Requirename Sigmd5Conflictname __db.002 Dirnames Installtid Obsoletename Providename Sha1header Triggern..原创 2021-08-13 17:18:30 · 428 阅读 · 0 评论 -
yum报错:Not using downloaded epel/repomd.xml because it is older than what we have:
原创 2021-08-13 17:09:50 · 758 阅读 · 0 评论 -
yum安装报错分析(三)
Install error log如下:–> Processing Dependency: libMagickWand.so.5()(64bit) for package: 1:emacs-24.3-23.1.el7.x86_64–> Processing Dependency: libMagickCore.so.5()(64bit) for package: 1:emacs-24.3-23.1.el7.x86_64—> Package m17n-db.noarch 0:1.6.4.原创 2021-08-13 17:03:53 · 549 阅读 · 0 评论 -
yum安装报错分析(二)
原创 2021-08-13 16:57:16 · 125 阅读 · 0 评论 -
yum安装报错分析(一)
原创 2021-08-13 16:55:05 · 198 阅读 · 0 评论 -
yum插件制作
参考信息http://yum.baseurl.org/wiki/WritingYumPlugins.htmlhttps://dnf.readthedocs.io/en/latest/api.htmlhttps://github.com/rpm-software-management/dnf-plugins-extras原创 2021-08-10 11:44:23 · 128 阅读 · 0 评论 -
yum报错之 File exists: ‘/var/log‘
yum报错之[Errno 17] File exists: ‘/var/log’【背景】 Linux环境使用yum命令,显示报错[Errno 17] File exists: '/var/log'【分析】 查看ls -ld/var.log 【解决】mkdir /mnt/log原创 2021-05-21 00:06:27 · 193 阅读 · 0 评论 -
Release之yum常规操作(done)
查询yum历史记录:yum history listyum history撤销某次yum操作:yum history undo +id回滚到之前某次的yum状态:yum history rollback +之前id重新操作某次的yum操作:yum history redo +某次id查询最近一次yum history历史记录ID号:yum history list | awk ‘{print $1}’ | sed ‘s/^\ *//g’ | grep “1” | head -n 1查询原创 2021-05-16 22:18:28 · 214 阅读 · 0 评论 -
release之dnf命令用法
CentOS 8的国内镜像和dnf包管理器dnf(不是毒奶粉与勇士)一直以来是Fedora的包管理工具(从Fedora 22开始成为默认包管理器),号称是yum的下一代包管理器。在CentOS 8中也加入了dnf且成为默认的包管理工具,因此CentOS 8中可以使用dnf或yum来管理包。实际上,CentOS 8的yum是dnf的一个软链接:$ ls -l /usr/bin/yumlrwxrwxrwx. 1 root root 5 May 14 2019 /usr/bin/yum -> dn原创 2021-05-08 11:59:41 · 208 阅读 · 0 评论 -
查rpm包的ldd是否有not found出现
查rpm包的ldd是否有not found出现rpm -ql $1 > usefull #$1代表rpm包:例如wget.aarch64for x in /bin /sbin /usr/bin /usr/sbin /usr/localdo [ ! -L "$x" ] && grep "^${x}/" usefulldone#ldd check:> listrm -rf ldd_checkfor x in /bin /sbin /usr/bin /us原创 2021-04-30 00:19:42 · 189 阅读 · 0 评论 -
Release之yum工具exclude包方式
Release之yum工具exclude包方式以阿里云linux系统为例:【背景】:在使用yum工具时,有些包,是我们需要刻意skip的,这样该怎么处理?【by1】:使用yum命令时,加上参数--exclude=rpm例如:查询list中aliyun-cli但是排除掉aliyun-cli-3.0.70-1.al7这个版本,只显示其他的yum list aliyun-cli --exclude=aliyun-cli-3.0.70-1.al7【by2】cat /etc/yum.con原创 2021-04-22 21:23:27 · 477 阅读 · 0 评论 -
Relesae相关网站汇总
https://docs.fedoraproject.org/en-US/docs/https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/pdf/performance_tuning_guide/Red_Hat_Enterprise_Linux-7-Performance_Tuning_Guide-en-US.pdfhttps://fedoraproject.org/wiki/Kernel/Spechtt原创 2021-04-09 14:11:52 · 190 阅读 · 0 评论 -
repoquery
Repoquery useRepoquery is a yum-util that has an array of involved and complicated options. It is intended to be an analog to rpm -q commands but run on remote repositories. This accounts for why it is complicated and involved ???? This page has a series转载 2021-03-26 16:19:22 · 189 阅读 · 0 评论 -
Release资料
openSUSE:Packaging Conventions RPM Macroshttps://zh.opensuse.org/openSUSE:RPM_conditional_buildsopenSUSE:RPM conditional buildshttps://zh.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros原创 2021-03-21 18:23:08 · 139 阅读 · 0 评论 -
BaseOs之:rpm经验与常见问题
文章目录rpm的常规实操:rpm的常规实操:原创 2021-03-07 22:50:01 · 640 阅读 · 0 评论 -
BaseOs之:yum源经验与常见问题
文章目录修改yum源优先级:前言第一:查看系统是否安装了优先级的插件第二:安装yum-plugin-priorities.noarch插件第三:查看插件是否启用第四:修改本地yum源优先使用修改yum源优先级:前言我们在安装一些软件时,可能需要配置多个yum源,这些源中,都存在某些软件包,但有些软件有重复,甚至冲突,能否可以优先从一些软件源中去找,如果找不到,才去其他源中找呢?这里就涉及到了优先级的问题,yum提供的插件yum-plugin-priorities.noarch可以解决这个问题原创 2021-03-07 20:02:17 · 1675 阅读 · 0 评论 -
BaseOs之:网络yum源部署
参考阿里mirror.aliyum源原创 2021-03-07 18:18:23 · 525 阅读 · 3 评论 -
c语言代码编译
文章目录初识:初识:原创 2021-03-07 18:08:01 · 76 阅读 · 0 评论 -
BaseOs之:Release之repoquery用法(done)
文章目录repoquery根据yum link查rpm包:repoquery根据yum link查rpm包:repoquery --nvr --repoid asd --repofrompath=asd,http://mirror.centos.org/centos/7.9.2009/updates/x86_64/ -q -a原创 2021-03-06 00:45:09 · 154 阅读 · 0 评论 -
BaseOs之:Error: No available modular metadata for modular package
Error: No available modular metadata for modular package------------->>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Error: No available modular metadata for modular package-----原创 2021-03-01 23:41:47 · 2092 阅读 · 1 评论 -
BaseOs之:centos cve源码下载方式
文章目录centons7/centos8非mo原创 2021-02-27 22:25:13 · 434 阅读 · 0 评论 -
BaseOs之:mock用法
文章目录linux rpm编译中mock虚拟系统用法:为mock chroot系统写入dist宏参数:给mock虚拟环境安装rpm包(不清理chroot环境)linux rpm编译中mock虚拟系统用法:mock -r xxx.cfg --uniqueext=设置名 cleanmock -r xxx.cfg --uniqueext=设置名 init为mock chroot系统写入dist宏参数:mock ${ARCH_SET} -r xxx.cfg --uniqueext=设置名原创 2021-02-25 23:45:06 · 240 阅读 · 0 评论 -
BaseOs之:ldd命令检测某条命令执行时需要哪些共享库文件的支持
文章目录ldd命令检测某条命令执行时需要哪些共享库文件的支持ldd命令检测某条命令执行时需要哪些共享库文件的支持#ldd $(which /usr/sbin/nginx) linux-vdso.so.1 => (0x00007fffbc3fe000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f9a6b456000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f9原创 2021-02-12 22:34:57 · 103 阅读 · 0 评论 -
maven相关
文章目录linux maven配置下载源码:解压源码:数据移动:修改环境变量:使环境修改生效:linux maven配置下载源码:wget http://ftp.wayne.edu/apache/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz解压源码:tar -zxvf apache-maven-3.5.4-bin.tar.gz数据移动:mv apache-maven-3.5.4 /usr/local/maven原创 2021-02-05 18:47:52 · 50 阅读 · 0 评论 -
BaseOs之:查询rpm版本号大小
文章目录查询rpm版本号大小rpm.listrpm.list数据:判断脚本:运行结果:查询rpm版本号大小rpm.listbind-9.11.4-16.P2.el7_8.9.x84_64.el7.rpmbind-9.11.4-16.P2.el7_8.3.x84_64.el7.rpmbind-9.11.4-16.P2.el7_8.6.x84_64.el7.rpmbind-9.11.4-16.P2.el7_9.6.x84_64.el7.rpmrpm.list数据:判断脚本: #首次将第一原创 2021-01-30 00:26:49 · 495 阅读 · 0 评论 -
BaseOs之:获取libcroco-0.6.12-6.el7_9.1.src.rpm中el7_9
文章目录判断el7_9.1和el7_9判断el7_9.1:判断el7_9截取libcroco-0.6.12-6.el7_9.1.src.rpm中el7_9判断el7_9.1和el7_9libcroco-0.6.12-6.el7_9.1.src.rpmlibcroco-0.6.12-6.el7_9.src.rpm判断el7_9.1:if echo “$srpm” | egrep “el7_[0-9]”;then判断el7_9if echo “$srpm” | egrep “el7.原创 2021-01-29 23:57:57 · 240 阅读 · 0 评论 -
开源钉钉机器人
文章目录shell调用钉钉机器人:shell调用钉钉机器人: curl "$DING_API" -H \ 'Content-Type: application/json' -d \ '{"msgtype": "text", "at":{"isAtAll":true}, "text": { "content": "Hi~ :大家好" } }'...原创 2021-01-29 00:23:41 · 209 阅读 · 0 评论 -
BaseOs之:打patch-patch适配
打patch-patch适配el7 源码:cloud-init-19.4-7.el7.src.rpm适配对象:cloud-init-19.4-7.el7.src.rpm背景重现:更新cloud-init,执行rpmbuild -bp失败,patch适配时遇到了问题背景重现: pushd /root/rpmbuild/SPECS/ rpmbuild -bp cloud-init.spec popd查找问题:首先:查看源patch信息:第二:找到对应的文件原创 2021-01-21 12:53:25 · 262 阅读 · 0 评论