rpm

centos保存rpm到本地以及使用yum完全卸载软件包

扶醉桌前 提交于 2019-12-06 10:45:33
目录 保存安装的rpm到本地 方法一: 方法二(推荐): yum卸载软件包包括依赖 保存安装的rpm到本地 方法一: [root@ServerA ~]# vim /etc/yum.conf [main] cachedir=/var/cache/yum/$basearch/$releasever keepcache=0 #修改keepcache=1即可在yum安装时保存rpm包 debuglevel=2 logfile=/var/log/yum.log exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 installonly_limit=5 bugtracker_url=http://bugs.centos.org/set_project.php?project_id=23&ref=http://bugs.centos.org/ bug_report_page.php?category=yum distroverpkg=centos-release 对于centos7来说可以在通过 ls /var/cache/yum/x86_64/7/ 查看所有下载记录 方法二(推荐): yum install -y 包名 -–downloadonly 下载RPM包而不安装 yum install -y 包名 -–downloadonly -

Is there a RPM File naming convention in LSB?

孤人 提交于 2019-12-06 09:24:27
问题 RPM is the package format in LSB but does LSB force any naming standard for RPMs similarly to this: http://www.rpm.org/max-rpm/ch-rpm-file-format.html 回答1: In the relevant section of the "LSB Book", Packaging, it's only required to prefix your package with lsb- to register the portion of your package name up to the first hyphen in LANANA (or for it to be your domain name). However, the standard LSB packaging tool wrapper, makelsbpkg , is said to generate package names in the form mypackage-1

Linux常用命令总结

旧时模样 提交于 2019-12-06 08:44:34
自己简单总结的,希望对大家有帮助吧! 关机/重启 关机   poweroff //立即关机   shutdown -h now   //立刻关机   shutdown -h 时间 //到某个时刻自动关机   halt //立刻关机   init 0 //关闭系统   shutdown -c //取消定时关机   logout //注销   //简单说一下三个立刻关机的区别:poweroff是掉电关机,但实际上也是先关闭程序再关机,halt等同于shutodwn -h now是停掉系统而已,并没有掉电,主板是通电的 重启   shutdown -r now //立即重启 注意:关机和重启操作都是需要root权限的 系统信息 uname -r //查看系统内核版本 cat /proc/version //显示内核版本的详细信息 arch //查看系统处理器是32/64位 uname -m //等同于arch cat /proc/cpuinfo //查看cpu详细信息 date //显示系统时间 date +"时间显示格式" //按规定格式显示时间 clock -w //将系统时间写入硬件 cal 年 //查看某一年的日历 hostname //查看计算机名,后面可以加名称临时更改系统名称 cat /etc/redhat-release //查看系统版本 head /etc/issue

how to install rpm package to non-default path? [closed]

狂风中的少年 提交于 2019-12-06 08:20:54
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . i have a rpm package, and i need to extract some files from it. The package is not relocatable, i have try "rpm --root/--prefix", which doesn't work. what methods i should take to do the extraction? Thank In Advace. 回答1: if You need to extract some file only, use this commands: rpm2cpio rpmfile.rpm | cpio -idmv

centos 7 get latest apache package

旧街凉风 提交于 2019-12-06 08:02:15
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 httpd? update [centos ~]$ httpd -v Server version: Apache/2.4.6 (CentOS) Server built: Jul 18 2016 15:30

rpmlib(FileDigests) dependency error on RPM built with rpm-maven-plugin

笑着哭i 提交于 2019-12-06 07:56:48
Just like with this question , I try to an install an RPM and get the following errors: # rpm -iv myapp-0.0.14-SNAPSHOT.rpm error: Failed dependencies: rpmlib(FileDigests) <= 4.6.0-1 is needed by myapp-0.0.14-SNAPSHOT20151117233758.noarch rpmlib(PayloadIsXz) <= 5.2-1 is needed by myapp-0.0.14-SNAPSHOT20151117233758.noarch But my app was built with the rpm-maven-plugin . There are differences in redhat version between the build machine and the server on which I want to do the install. $ uname -a Linux buildmach 2.6.32-573.el6.x86_64 #1 SMP Wed Jul 1 18:23:37 EDT 2015 x86_64 x86_64 x86_64 GNU

Centos7下RabbitMQ的安装与配置

陌路散爱 提交于 2019-12-06 07:51:41
1.下载安装依赖环境 wget https://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm rpm -ivh erlang-solutions-1.0-1.noarch.rpm yum install erlang yum install socat 2.下载安装RabbitMQ wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6-1.el7.noarch.rpm yum install rabbitmq-server-3.6.6-1.el7.noarch.rpm 3.开启web管理后台 cd /usr/sbin/ ./rabbitmq-plugins enable rabbitmq_management 4.配置RabbitMQ 创建用户名和密码 ./rabbitmqctl add_user admin admin123 查看用户角色列表 ./rabbitmqctl list_users 设置用户角色 ./rabbitmqctl set_user_tags admin administrator 设置用户权限 ./rabbitmqctl set_permissions -p "/"

How can I have multiple versions of the Java JDK installed on my machine at the same time?

徘徊边缘 提交于 2019-12-06 07:18:07
问题 Background I work mostly in Java and Scala on my job, but a lot of our legacy code has not yet been updated to the most recent JDK. Thus, we have to have JDK versions 5, 6, 7, and 8 installed on our development machines. Until recently, I had been using Arch Linux, but I just switched to OpenSuse Tumbleweed. The method I used to install the JDK versions was to download the RPM installer scripts from the Oracle website and install them beginning with 1.5 and working my way up to 1.8 so that

使用LVS和Keepalived搭建高可用WEB服务

十年热恋 提交于 2019-12-06 06:38:49
by: 白马公园/naritech 本文的主旨在于配置一个尽可能简单的高可用WEB服务系统,帮助读者理清keepalived、LVS等软件的配置和使用,为进一步用好LVS树立信心,夯实基础。 本文只涉及使用LVS和Keepalived解决WEB服务的高可用和高并发,对于WEB集群中的session共享即数据一致性问题不做讨论,对WEB集群中的session共享问题感兴趣的朋友可以参考我的另外一篇文章《nginx、tomcat、redis配置session共享》 网上关于LVS和keepalived搭建高可用WEB服务的文章很多,本文的不同之处在于笔者在配置的过程中遇到了很多问题,因而走了不少弯路。所以本文的重点将放在这些问题的讲述上。 一、 系统架构 全系统包括五台服务器,均为虚拟机,安装Centos6.5操作系统,其中 hadoop01 192.168.75.88 安装keepalived,作为主负载调度器使用 hadoop02 192.168.75.89 安装keepalived,作为备用负载调度器使用 hadoop03 192.168.75.90 安装tomcat,作为真实Web服务器使用 hadoop04 192.168.75.91 安装tomcat,作为真实Web服务器使用 hadoop05 192.168.75.92 安装tomcat,作为真实Web服务器使用

Linux软件安装

无人久伴 提交于 2019-12-06 06:32:37
编译安装(复杂麻烦) RPM安装 RPM介绍 Redhat提供了rpm管理体系 已经编译的软件包:针对不同的平台系统编译目标软件包 操作系统维护安装信息rpm 只能安装已经下载到本地机器上的rpm 包,且不能自动处理包与包之间的依赖问题 rpm安装 rpm -ivh filename (i表示install,v表示查看安装进度) rpm卸载 rpm -e filename rpm更新 rpm -Uvh filename rpm查询 rpm -qa : 查询已经安装的所有包 rpm -q PACKAGE_NAME: 查询指定的包是否已经安装 rpm -qi PACKAGE_NAME: 查询指定包的说明信息 rpm -ql PACKAGE_NAME: 查询指定包安装后生成的文件列表 rpm -qc PACEAGE_NEME:查询指定包安装的配置文件 rpm -qd PACKAGE_NAME: 查询指定包安装的帮助文件 rpm -q --scripts PACKAGE_NAME: 查询指定包中包含的脚本 rpm -qf /path/to/somefile: 查询文件是由哪个rpm包安装生成的 如果某rpm包尚未安装,需查询其说明信息、安装以后会生成的文件 rpm -qpi /PATH/TO/PACKAGE_FILE rpm -qpl yum安装 yum介绍 基于rpm包管理