rpm

RPM 用法

旧巷老猫 提交于 2019-12-23 18:15:52
查看RPM信息: rpm -q [软件的rpm名字] rpm -q下还有很多选项,具体功能如下: rpm -qa 列出所有已安装的RPM文件 rpm -qa | grep [rpmname] 搜索一个特定的软件包,其名字的关键字[rpmname] rpm -ql 列出RPM中的文件 rpm -qc 列出一个软件包上的所有配置文件 rpm -qd 列出一个软件包上的所有文档文件,通常为联机帮助文件 rpm -qi 显示一个软件包上的所有文件 rpm -qs 列出一个软件包上所有文件的状态 rpm -qp [packagefile] 查询部件名称 rpm -qv 列出PRM文件的格式,类似ls -l查文件的形式 rpm -qf [filename] 查询filename是属于哪个部件 安装RPM文件 rpm -i [rpmname] rpm -i -force [rpmname] (强制安装,一般是在系统上已经安装了新的版本,而用户想要用旧的版本时可使用参数-force) 删除RPM软件 rpm -e [filename] 注:执行该命令将会把所有具有[filename]关键词的软件全部删除,故请小心使用以免删除其他的软件。另此处使用的是软件的名称,而不是RPM package名称。 升级RPM软件 rpm -U [rpmname] 使用-U参数进行安装,程序会删除所有的旧版本

Tracking deployed application's files

强颜欢笑 提交于 2019-12-23 17:26:39
问题 What do you guys use to deploy and application and track their files in production? I mean tracking if the file was not changed directly in the server? thanks 回答1: I have been using Git for 3 years to track /usr/local on a HPC production cluster. For 2.2G (mostly binaries) it takes 1 minute running git log -n 1; git status (over NFS!) to convince myself that the files were not modified after deployment. On local disk the scan would take seconds. If change did happen, I see which files and

elk安装

断了今生、忘了曾经 提交于 2019-12-23 08:33:30
1、安装配置java [root@elk ~]# yum install java-1.8.0-openjdk.x86_64 -y [root@elk ~]# java -version openjdk version "1.8.0_212" OpenJDK Runtime Environment (build 1.8.0_212-b04) OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode) 2、更新时间 yum install ntpdate -y ntpdate time1.aliyun.com 3、安装配置elasticsearch [root@elk ~]# mkdir elk_package [root@elk ~]# cd elk_package [root@elk elk_package]# ll -rw-r--r--. 1 root root 114059630 Dec 21 10:26 elasticsearch-6.6.0.rpm -rw-r--r--. 1 root root 185123116 Dec 21 10:26 kibana-6.6.0-x86_64.rpm [root@elk elk_package]# rpm -ivh elasticsearch-6.6.0.rpm warning:

Multi-architectural binary rpm and the noarch

て烟熏妆下的殇ゞ 提交于 2019-12-23 04:54:38
问题 I have two (32-bit and 64-bit) versions of a compiled software which I would like to package into ONE binary RPM. I am wondering if 'noarch' target is suitable for this purpose or there are better alternatives? The only issue with 'noarch' that I see is that having i386 and x86_64 binaries in the package doesn't make it architecture-independent which 'noarch' is supposed to be used for. 回答1: I don't think it's possible to have one binary RPM supporting two architectures. You have to generate

MySQL5.6安装(RPM)笔记

戏子无情 提交于 2019-12-23 03:32:37
1. 检查MySQL是否安装,如果有安装,则移除(rpm –e 名称) [root@localhost ~]# rpm -qa | grep -i mysql mysql-libs-xxxxxxxxxx.x86_64 [root@localhost ~]# yum -y remove mysql-libs* --nodeps [root@localhost ~]# rpm –e --nodeps mysql-libs* 2. 安装MySQL,并修改配置文件位置 [root@localhost rpm]# rpm -ivh MySQL-server-5.6.15-1.el6.x86_64.rpm #MySQL-client - MySQL 客户端程序,用于连接并操作Mysql服务器。 [root@localhost rpm]# rpm -ivh MySQL-devel-5.6.15-1.el6.x86_64.rpm #MySQL-devel - 库和包含文件,如果你想要编译其它MySQL客户端,例如Perl模块,则需要安装该RPM包。 [root@localhost rpm]# rpm -ivh MySQL-client-5.6.15-1.el6.x86_64.rpm #修改配置文件位置 [root@localhost rpm]# cp /usr/share/mysql/my

Suse12.1 - mysql5.7 rpm部署

帅比萌擦擦* 提交于 2019-12-23 03:31:20
http://dev.mysql.com/downloads/mysql/ http://blog.csdn.net/gaolu/article/details/52090174 http://haowen.blog.51cto.com/3486731/1274721 mysql : http://dev.mysql.com/downloads/repo/suse/ --下载网址 1、确认是否安装了MYSQL 旧版本或应用 # rpm -qa|grep mysql 2、卸载旧版本或应用 #rpm -ev libqt4-sql-mysql-4.8.6-2.6.x86_64 3、更新Zypper 库(Adding the MySQL SLES Repository) # wget http://repo.mysql.com//mysql57-community-release-sles12-7.noarch.rpm --- wget http://repo.mysql.com//mysql57-community-release-sles11-7.noarch.rpm --suse11 --- # rpm -Uvh mysql57-community-release-sles12-7.noarch.rpm # zypper repos|grep mysql.*community

Is there a way to log activities done by a rpm?

不羁岁月 提交于 2019-12-23 02:31:31
问题 I am trying to log the activities done by my rpm, but unable to find a way to do it. I am looking for some way to do it through the spec file itself. If there are 5 steps my rpm performs, I need a way to log these steps and their results to a log. I found this after a brief google search - http://www.rpm.org/wiki/RpmLog . It seems like this work is still underway(?). I was able to create a directory to save the logs following this, but how do I actually write something to a log file in this

Linux软件包管理之yum在线管理

£可爱£侵袭症+ 提交于 2019-12-23 00:47:07
目录 1、yum在线管理 2、网络 yum 源 3、光盘 yum 源搭建步骤   ①、挂载光盘   ②、让网络 yum 源失效   ③、修改光盘yum源文件   ④、输入yum list 可以查看光盘yum源里面的软件包 4、常用的 yum 命令   ①、查询所有可用软件包列表:yum list   ②、查询服务器上和关键字相关的软件包:yum search 关键字   ③、yum 安装软件包:yum -y install 包名   ④、yum 升级软件包:yum -y update 包名   ⑤、yum 卸载软件包:yum -y remove 包名 5、yum软件组管理 6、总结   上一篇博客我们介绍了 rpm包管理之rpm命令管理 ,我们发现在使用rpm命令手动安装rpm包的时候,会发现安装遇到到的依赖让你痛不欲生,安装一个rpm时会要先先安装某个依赖的rpm,而安装这个依赖的rpm包是可能又必须先安装它所依赖的。在实际操作中,我们肯定是不会使用rpm命令手动安装软件包的,更简单的方法就是这篇博客我们将介绍RPM包管理——yum在线管理。 回到顶部 1、yum在线管理   yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及SUSE中的Shell前端软件包管理器。基于RPM包管理

centos 7 get latest apache package

十年热恋 提交于 2019-12-22 22:18:11
问题 This question comes from my lack of understanding of package managers, I run yum list and get httpd-2.4.6-40.el7.centos.4.x86_64 https://rpmfind.net/linux/RPM/centos/updates/7.2.1511/x86_64/Packages/httpd-2.4.6-40.el7.centos.4.x86_64.html Build date: Mon Jul 18 17:32:11 2016 I did yum update && yum install httpd , will this get me the latest version of httpd? where can I check online to confirm my package/build is the latest? how can I periodically install security patches for my version of

no module named rpm - when i call yum on shell

情到浓时终转凉″ 提交于 2019-12-22 17:54:15
问题 I installed python 2.7.5 and mod_wsgi on centos machine linux os. And this happened: # yum Error processing line 1 of /usr/local/lib/python2.7/site-packages/abrt.pth: Traceback (most recent call last): File "/usr/local/lib/python2.7/site.py", line 152, in addpackage exec line File "<string>", line 1, in <module> ImportError: No module named abrt_exception_handler Remainder of file ignored Traceback (most recent call last): File "/usr/bin/yum", line 22, in <module> import yummain File "/usr