rpm

Linux安装软件

倾然丶 夕夏残阳落幕 提交于 2020-01-04 19:20:02
克隆虚拟机 安装JDK 卸载: 1.使用java version查看虚拟机是否有jdk环境,存在先卸载: 2.首先我的系统是CenOS7,安装完成后,先打开终端,切换到管理员账号,命令如下图 3.找出带java关键字的安装包,命令是:rpm -qa|grep java,会出现如下结果: 4.运行如下命令进行卸载,命令是: yum -y remove java* 安装 上传到Xftp,然后解压安装 tar -zxvf jdk-8u221-linux-x64.tar.gz 配置环境变量,打开 vi /etc/profile 在文件结尾添加 注意是使用“ : ”分隔 export JAVA_HOME= jdk所在的目录位置 export JRE_HOME=$JAVA_HOME/jre export PATH=$PATH:$JAVA_HOME/bin export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar 让文件生效 source /etc/profile 目录以及子目录授予root权限 chown root:root -R /home/tina/tools/jdk1.8 查看jdk是否安装成功 java –version 或者 java 或者javac 安装tomcat 下载Tomcat8压缩包 进入 http:

svn安装

帅比萌擦擦* 提交于 2020-01-04 17:21:31
tar zxvf apr-1.6.5.tar.gz cd apr-1.6.5 ./configure --prefix=/usr/local/apr make &&make install tar zxvf apr-util-1.6.1.tar.gz cd apr-util-1.6.1 ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr make && make install rpm -ivh expat-devel-2.0.1-11.el6_2.x86_64.rpm openssl-devel-1.0.1e-30.el6.x86_64.rpm openssl-devel-1.0.1e-30.el6.i686.rpm zlib-1.2.3-29.el6.x86_64.rpm zlib-devel-1.2.7-17.el7.x86_64.rpm --force --nodeps tar zxvf subversion-1.10.3.tar.gz unzip -d subversion-1.10.3 sqlite-amalgamation-3250300.zip cd subversion-1.10.3 cp -r sqlite-amalgamation-3250300/ sqlite

What's the rule for the Name-Version-Release of RPM?

落花浮王杯 提交于 2020-01-04 11:10:29
问题 Imagine a RPM named abc-123-1.x86.rpm , and I found a bug in it. But I don't know how to name the new package. Maybe abc-123-2.x86.rpm ? But what if there is a xyz.rpm depends on abc-123-1 ? Maybe abc-123-1.x86.1.rpm , ... So my question is what's the rule for the Name-Version-Release of RPM? 回答1: The question is where is the bug and who fixed it. The parts of an rpm package/file name are the name , the version , the release and the architecture (there's also an epoch but that's only used in

repackage an rpm from an installed rpm

孤者浪人 提交于 2020-01-03 15:21:47
问题 On linux can we repackage a installed rpm if so how.I remember that the a rpm can be generated from the installed binaries rpm -??? > my.rpm Also the later i.e, the newer rpm should work on a different machine 回答1: This is possible, but not with the rpm command. I wrote a perl script that does this; it crafts a spec file based on the outputs of rpm -q and does a "build" which just copies the installed files from the system. You can find it here: https://github.com/cormander/rogue-beret-tools

zabbix 4.04 安装文档 - 基于CentOS 7.6

五迷三道 提交于 2020-01-03 09:20:26
1 安装前准备: 1.1 安装JDK 卸载openjdk # rpm -qa | grep java # yum remove java-1.8.0-openjdk # yum remove java-1.8.0-openjdk-headless 安装JDK包 # rpm -ivh jdk-8u191-linux-x64.rpm 1.2 安装依赖包 # yum install -y net-snmp net-snmp-devel OpenIPMI-devel libssh2-devel openldap-devel openldap-clients libxml2-devel libcurl-devel gcc msyql-devel libevent-devel php-mysql php-gd php-mbstring php-bcmath libjpeg-devel freetype-devel libpng-devel php-xml keyutils-libs-devel krb5-devel libcom_err-devel libkadm5 libselinux-devel libsepol-devel openssl-devel pcre-devel zlib-devel 以下3个包在DVD1中没有包含,如果配置的是本地yum源,需要单独安装 # yum

如何将CentOS 7升级到CentOS 8

▼魔方 西西 提交于 2020-01-03 05:09:32
如何将 CentOS 7 升级到 CentOS 8 詹姆斯 · 基里亚 ( James Kiarie ) | 发布时间: 2019 年 11 月 11 日 | 上次更新时间: 2019 年 11 月 12 日 在本文中,您将学习如何将 CentOS 7 升级到 CentOS 8 。本文描述的步骤未描述正式升级,因此尚不应用于生产服务器。 步骤 1 :安装 EPEL 储存库 首先,通过运行以下命令安装 EPL 存储库: # yum install epel-release -y 在 CentOS 7 中安装 EPEL Repo 步骤 2 :安装 yum-utils 工具 成功安装 EPEL 之后 ,通过运行以下命令来安装 yum-utils 。 # yum install yum-utils 在 CentOS 7 中安装 yum-utils 此后,您需要通过执行命令来解析 RPM 软件包。 # yum install rpmconf # rpmconf -a 保留默认 RPM 设置 接下来,清理所有不需要的软件包。 # package-cleanup --leaves # package-cleanup --orphans 干净的 RPM 软件包 步骤 3 :在 CentOS 7 中安装 dnf 现在安装 dnf 软件包管理器 ,它是 CentOS 8 的默认软件包管理器。 #

package installtion issue , rpm spec file , which include yum to install dependence

▼魔方 西西 提交于 2020-01-03 02:25:12
问题 im having this part of spec file , %post %{__mv} %{_sysconfdir}/sysconfig/data.py /opt/data.py %{__mv} %{_sysconfdir}/sysconfig/get-pip.py /opt/get-pip.py yum -y install python-psycopg2 python /opt/get-pip.py pip install setuptools --no-use-wheel --upgrade pip install requests echo -e "*/5 * * * * /usr/bin/python /opt/data.py" >> /var/spool/cron/root %files %{_sysconfdir}/sysconfig/data.py %{_sysconfdir}/sysconfig/get-pip.py %changelog the rpmbuild without error , but when i try to install

CentOS升级php5.3

时光怂恿深爱的人放手 提交于 2020-01-03 00:49:08
CentOS升级php5.3 rpm --import http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy wget -P /etc/yum.repos.d/ http://repo.webtatic.com/yum/webtatic.repo yum --enablerepo=webtatic update php -y 2011年4月13号测试成功建源并升级! CentOS安装xapian(ver: 1.2.4) 使用官网上的方法没有成功。使用以下命令安装: rpm -ivh http://rpm.eprints.org/xapian/5/i386/xapian-core-libs-1.2.4-1.i386.rpm ;核心库参数 rpm -ivh http://rpm.eprints.org/xapian/5/i386/xapian-core-1.2.4-1.i386.rpm ;核心 rpm -ivh http://rpm.eprints.org/xapian/5/i386/xapian-bindings-1.2.4-1.i386.rpm rpm -ivh http://rpm.eprints.org/xapian/5/i386/xapian-bindings-php-1.2.4-1.i386.rpm ;php支持 来源

Redhat6 RPM 软件管理常用命令汇总

ぐ巨炮叔叔 提交于 2020-01-02 05:59:29
  软件的安装时操作系统管理的基础,与Windows不同,Linux的软件管理有很多种方式,Redhat的最常用的是RPM方式,安装集成在光盘中的RPM包。这种方式比Windows平台的软件管理更加便捷(个人感觉,总体感觉Windows程序安装于卸载有点复杂),使用起来也更加的心用手。    1、Redhat中的rpm包的位置 —— 光盘目录中的 Package 目录全部都是。    2、RPM常用命令解读:     a、安装程序: rpm -ivh <软件包的绝对路径> #i为install;v,verbose;h,hash [root@asdf /]# rpm -ivh /media/RHEL_6.1\ i386\ Disc\ 1/Packages/vsftpd-2.2.2-6.el6_0.1.i686.rpm      b、卸载程序: rpm -e <软件名> [root@asdf /]# rpm -e vsftpd  # e => erase 、uninstall [root@asdf /]# rpm -q vsftpd #检测一下是否已卸载 package vsftpd is not installedrpm -aq|grep yum|xargs rpm -e --nodeps #卸载所有yum相关包      c、查询指定软件是否已安装: rpm -q <软件名> /

can an RPM spec file “include” other files?

你离开我真会死。 提交于 2020-01-02 01:30:30
问题 Is there a kind of "include" directive in RPM spec? I couldn't find an answer by googling. Motivation : I have a RPM spec template which the build process modifies with the version, revision and other build-specific data. This is done by sed currently. I think it would be cleaner if the spec would #include a build-specific definitions file, which would be generated by the build process, so I don't need to search and replace in the spec. If there is no include , is there an idiomatic way to do