rpm

阿里云ECS下基于Centos7.4安装MySQL5.7.20

妖精的绣舞 提交于 2019-12-26 22:41:17
1、首先登录阿里云ECS服务器,如下图所示: 2、卸载MariaDB 说明: CentOS7.x默认安装MariaDB而不是MySQL,而且yum服务器上也移除了MySQL相关的软件包。因为MariaDB和MySQL可能会冲突,故先卸载MariaDB! 3、到mysql的官网下载最新版mysql的rpm集合包。 URL如下: https://downloads.mysql.com/archives/community/ 4、进入/usr/local/src目录,使用lrzsz中的rz工具进行上传。 或者直接使用linux 下的wget工具进行下载:wget https://cdn.mysql.com/archives/mysql-5.7/mysql-5.7.20-1.el7.x86_64.rpm-bundle.tar(如果没有wget工具,使用yum install -y wget进行安装) 5、上传mysql-5.7.20-1.el7.x86_64.rpm-bundle.tar到Linux服务器,并解压tar包。 6、使用rpm -ivh命令进行安装。 安装过程中缺少依赖包libaio,使用 yum install -y libaio 进行安装。 再次使用rpm -ivh 安装 6、上面几个包有依赖关系,执行有先后顺序。 使用rpm安装方式安装mysql,安装的路径如下: a.

CentOS Linux查询软件包的安装位置

别说谁变了你拦得住时间么 提交于 2019-12-26 22:16:00
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 在CentOS中,要查询使用yum中具安装的软件包具体的安装位置,可以使用yum -ql <软件包名>的方式进行查询。 比如,我想查询git的一个组件 git-http-backend的安装位置,可以使用如下命令实现 rpm -ql git | grep git-http-backend 效果如下: 来源: oschina 链接: https://my.oschina.net/u/617354/blog/313506

ubuntu 12.04.2 基于 L3.0.35_1.1.0_121218_source LTIB 问题汇总

梦想与她 提交于 2019-12-26 14:13:39
1)解压L3.0.35_1.1.0_121218_source.tar.gz 2)cd L3.0.35_1.1.0_121218_source ,执行./install 3) 复制 patch-ltib-ubuntu12.04.sh 到 litb文件夹, 修改权限,sudo chmod 777 patch-ltib-ubuntu12.04.sh , 执行:./ patch-ltib-ubuntu12.04.sh 4)执行:./ltib 错误1: make[1]: Entering directory `/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-1.1.0/bld/linux' gcc -g -I/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-1.1.0/elftosb2 -I/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-1.1.0/keygen -I/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-1.1.0/sbtool -I/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-1.1.0/common -DLinux -c /opt/freescale/ltib

用rpm包在centos7.4上安装mysql-5.7.24-1.el7.x86_64

淺唱寂寞╮ 提交于 2019-12-25 19:45:54
CentOS7.4系统信息 [root@localhost iso]# uname -a Linux localhost.localdomain 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux [root@localhost iso]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) mysql的rpm包下载地址 https://dev.mysql.com/downloads/mysql/5.7.html#downloads mysql-5.7.24-1.el7.x86_64.rpm-bundle.tar 一、卸载CentOS7.4系统自带的mariadb 二、将mysql-5.7.24-1.el7.x86_64.rpm-bundle.tar 拷贝到/tmp下,并解压 tar xvf mysql-5.7.24-1.el7.x86_64.rpm-bundle.tar 解压后如下 三、依次安装mysql-community-common-5.7.24-1.el7.x86_64.rpm、mysql-community-libs-5.7.24-1.el7.x86_64.rpm、mysql

Collect all RPMs that are needed by a package to make a custom CentOS DVD

非 Y 不嫁゛ 提交于 2019-12-25 17:10:24
问题 I need to copy all of the RPMs from a CentOS repo that are needed to build a custom version of CentOS for a DVD. Essentially I need a complete list of the packages needed by my custom RPM so that I can copy them to the ISO image I am building. I have a custom RPM(s) here that is not in the repo so I can't use yum deplist. When I do rpm -qpR it is close but it lists things that are not files with pathnames or packages. Files are easy because I can loop with repoquery --qf='%{name}' -f file

linux软件的安装,更新与卸载

不打扰是莪最后的温柔 提交于 2019-12-25 15:48:27
linux软件的安装,更新与卸载 Linux常见的安装为tar,zip,gz,rpm,deb,bin等。我们可以简单的分为三类. 第一:打包或压缩文件tar,zip,gz等,一般解压后即可,或者解压后运行sh文件; 第二:对应的有管理工具的deb,rpm等,通常的这类安装文件可以通过第三方的命令行或UI来简单的安装,例如Ubuntu中的apt来安装 deb,Redhat中的yum来安装rpm; 第三:像.bin类,其实就是把sh和zip打包为bin,或把sh和rpm打包为bin等,当在命令行运行bin安装文件时,其实就是bin里面的sh来解 压bin中的zip或安装rpm的过程 1. rpm安装,更新与卸载 RPM包,这种软件包就像windows的EXE安装文件一样,各种文件已经编译好,并打了包,哪个文件该放到哪个文件夹,都指定好了, 安装非常方便,在图形界面里你只需要双击就能自动安装。但是有一点不好,就是包的依赖关系,这个会烦死人的 A. rpm安装 1) 找到相应的软件包,比如soft.version.rpm,下载到本机某个目录; 2) 打开一个终端,su 成root用户; 3) cd soft.version.rpm所在的目录; 4) 输入rpm -ivh soft.version.rpm B。rpm更新 #rpm -Uvh soft.version.rpm C。rpm卸载

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

假如想象 提交于 2019-12-25 14:05:20
  软件的安装时操作系统管理的基础,与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 <软件名> /

腾讯云服务器安装PHP(CentOS Linux release 7.6.1810)

坚强是说给别人听的谎言 提交于 2019-12-25 12:51:21
操作系统:腾讯云CentOS Linux release 7.6.1810 (Core) cat /etc/centos-release //查看系统版本 一、先检查以前有没有安装的版本,如果有删除之前的 php 版本: yum remove php* php-common 二、rpm 安装 Php7 相应的 yum源 CentOS/RHEL 7.x: 1 rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 2 rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm CentOS/RHEL 6.x: rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm 可以用yum search php7查看下安装源的版本 yum search php7 看来最新的是php72w,下来就开始安装吧 三、安装PHP yum install php72w 四、常用systemctl指令: systemctl enable *.service #开机运行服务 systemctl disable *.service #取消开机运行 systemctl start *

How to run and interact with a script from within an RPM?

﹥>﹥吖頭↗ 提交于 2019-12-25 11:53:18
问题 I'm building an RPM which needs to run a bash script as root. The %install stanza of the spec file is: %install cp %{SOURCE1} %{SOURCE2} %{_tmppath}/%{name}-%{version}-%{release} cd %{_tmppath}/%{name}-%{version}-%{release} chmod u+x %{installscript} sudo ./%{installscript} Where %{installscript} is the script that runs as root with sudo. rpmbuild executes %{installscript} and creates the RPM (without problems). However, when I install the RPM: $ sudo rpm -Uvh $rpmpath Preparing... ##########

CentOS 5.8 ISO with custom packages

泪湿孤枕 提交于 2019-12-25 08:47:55
问题 How can I create a CentOS 5.8 .iso image with custom packages? I have to create an iso with only the packages needed for our production system. I already have all the rpms with their dependencies resolved in a folder. I have successfully created a repository from that folder with createrepo. As I understand it, I should put the rpm files in the CentOS folder, and repodata folder should contain the metadata needed for a package manager. I don't know if I should modify the existing comps.xml