rpm

Example of a multi-module web application with the rpm-maven-plugin?

谁说我不能喝 提交于 2019-12-09 05:35:01
问题 Does anyone know of any web applications that are built with Maven to an RPM? The RPM Maven Plugin provides the functionality to build to an RPM, but it's documentation is lacking. Specifically, I'm looking for an example that would include multiple modules, i.e. Chapter 8. A Multi-module Project, from the "Maven by Example" series. An example with only a single module would be: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi

How to set the rpmbuild destination folder

可紊 提交于 2019-12-09 05:10:30
问题 I noticed rpmbuild (-bb and --buildroot options) creates the .rpm in different locations depending of what OS are you using: GNU/Linux Ubuntu <= 9.04: /usr/src/rpm/... GNU/Linux Ubuntu >= 9.10: /home/rpmbuild/... GNU/Linux Fedora: /usr/src/redhat/... So how can I set manually the destination folder for all OS? 回答1: Replying myself, adding: %define _rpmdir /outputdir to .spec file. 回答2: You may want to use the command argument --define : For example, this will send the rpm files into the

scrapy 安装数据库mysql错误汇总和操作步骤

房东的猫 提交于 2019-12-08 22:24:45
 操作步骤:   1、检查python是否支持mysql [root@bogon ~ ]# python Python 2.7 . 10 (default, Jun 5 2015 , 17 : 56 : 24 ) [GCC 4.4 . 4 20100726 (Red Hat 4.4 . 4 - 13 )] on linux2 Type " help " , " copyright " , " credits " or " license " for more information. >>> import MySQLdb Traceback (most recent call last ): File " <stdin> " , line 1 , in <module> ImportError: No module named MySQLdb [root@bogon MySQL-python-1.2.5]# python Python 2.7.12 (default, Oct 18 2016, 02:30:08) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import

Xshell如何进行文件上传?

巧了我就是萌 提交于 2019-12-08 20:23:49
1:首先连接上一台Linux主机 2:输入rz命令,看是否已经安装了lrzsz,如果没有安装则执行 yum -y install lrzsz命令进行安装。 yum -y install lrzsz 3:安装成功后,输入rpm命令确认是否正确安装 rpm -qa lrzsz 来源: CSDN 作者: 鹏程萬裡 链接: https://blog.csdn.net/qq_19309473/article/details/92802090

阿里云Linux通过rpm方式安装mysql过程详解

别说谁变了你拦得住时间么 提交于 2019-12-08 16:56:39
阿里云Linux的mysql安装方式有三种,其中包括: 1、在线安装(yum -y install mysql-community-server) 2、源码手动编译安装 3、事先准备好mysql包并通过命令解压tar -xvf mysql-5.7.24-1.el6.x86_64.rpm-bundle.tar通过rpm -vih xx.rpm 依次安装安装,以下步骤就是通过rpm进行安装: **注:其他安装方式通过点击以下链接查看:** https://blog.csdn.net/qq_40714770/article/details/84577545 第一步: 检测是否已经安装了mysql rpm -qa | grep mysql 如果已经安装了,将其卸载,如: 删除对应的mysql目录 rm -rf /var/lib/mysql rm -rf /var/lib/mysql rm -rf /usr/lib64/mysql 注意:卸载后/etc/my.cnf不会删除,需要进行手工删除 rm -rf /etc/my.cnf 我们必须保证我们安装了yum:查看方式 命令:service httpd status 如果没有安装,需要安装 命令:yum install httpd (或者下载httpd的安装包,安装httpd,或者在系统自带的镜像盘里也有httpd的安装文件) 建立文件夹

阿里云服务器安装mysql,部署javaweb项目,个人浏览网上的一些经验做的总结,不足之处欢迎指导

巧了我就是萌 提交于 2019-12-08 16:56:21
阿里云服务器安装mysql,部署javaweb项目 首先,记住centOS7之后的很多命令都和老版本不同,具体的下面会介绍; centos7不支持mysql,内部集成了mariadb,而安装mysql的话会和mariadb文件冲突,所以需要先卸载mariadb,以下为卸载mariadb,安装mysql的步骤: rpm -qa | grep mariadb(列出安装过的rpm) 卸载:rpm -e mariadb-libs-5.5.37-1.el7_0.x86_64 为了方便,下面centos7叫”新版本“,centos前的叫”老版本“; 开始安装mysql 首先:看下图: 1.检测以前有没有安装过数据库可以用以下命令来检测: rpm -qa | grep MySQL(旧版本) rpm -qa | grep -i mysql(新版本) 2.有的话就删除: rpm -e 加上文件名 yum remove 文件名(用这个卸载需谨慎,容易删掉其他配置文件!!下图就是警告) 如果出现出现有依赖无法删除就使用下面的命令强制删: rpm -e --nodeps 文件名 rpm -ev (文件名) --nodeps 3.接着可以去找安装包了,tar,rpm,yum安装三种方式选择,下面提供了一种yum+rpm的安装方式: 3.1:因为CentOS 7的yum源中默认是没有mysql的。所以

阿里云安装mysql详细过程

浪子不回头ぞ 提交于 2019-12-08 16:55:46
1. 编辑源配置文件 /etc/yum.repos.d/epel.repo ,将内容修改成下面的内容: [epel] name=Extra Packages for Enterprise Linux 7 - $basearch #baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch failovermethod=priority enabled=1 gpgcheck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 [epel-debuginfo] name=Extra Packages for Enterprise Linux 7 - $basearch - Debug #baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch/debug mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch

How do you make _topdir relative to the location of the .spec file when building an RPM?

荒凉一梦 提交于 2019-12-08 14:42:06
问题 I have a .spec file that relies on a variable called _topdir . Right now when you checkout the SRPM source from git, you have to go and change where _topdir is pointing to to get the rpmbuild to function correctly. # We need the following line so that RPM can find the BUILD and SOURCES and RPMS dirs. %define _topdir /root/projects/my-project/my-project-srpm/ How do you specify that _topdir should be relative to the location of the .spec file so that _topdir isn't hard coded? 回答1: specify your

Linux软件安装( rpm,yum )

瘦欲@ 提交于 2019-12-08 10:08:32
( 1 ) rpm -ivh ( 2 ) rpm 函数缺失查询 www.rpmfind.net 函数依赖通过函数查询必要的包 ( 3 ) rpm 命名规则 httpd-2.2.15-15.el6.centos.1.i686.rpm httpd: 软件包名 2.2.15: 软件版本 15 : 软件发布的次数 el6 :软件发行商。 el6 是 RedHat 公司发布,适合 RHEL6.x ( Red Hat Enterprise Linux )和 CentOS6.x 下使用 i686 适合的硬件平台。 rpm : rpm 包的扩展名。 包全名 : 如果操作的是未安装软件包,则使用包全名,而且需要注意绝对路径 包名 :如果操作的是已经安装的软件包,则使用包名即可,系统会生产 RPM 包的数据库 /var/lib/rpm/ (4) rpm 包 手工命令 3.1 默认安装位置(推荐使用默认安装) /etc 配置文件的安装位置 /user/bin 可执行文件的安装位置 /user/lib 程序使用函数库的保存位置 /user/share/doc 基本软件的使用手册 /user/share/man 软件的帮助文档 Apache 安装的位置: /var/www/html 默认网址 /etc/httpd/conf/httpd.conf 配置文件的安装位置 3.2 M RPM 包安装 ( 1

rpmlib(FileDigests) dependency error on SuSE

半世苍凉 提交于 2019-12-08 05:30:03
问题 Doing a yum install A-3.6.0 on both SuSE 11.2 (64-bit) and CentOS 5.8 (64-bit) the following installation requirements error popped up: error: Failed dependencies: rpmlib(FileDigests) <= 4.6.0-1 is needed by A-3.6.0-1.noarch rpmlib(PayloadIsXz) <= 4.6.0-1 is needed by A-3.6.0-1.noarch which is needed by A-3.6.0-1.noarch Googling the error shows that others have run into this problem on SuSE and CentOS, but I'm unable to find a resolution to the problem. Does anyone know where I'm might find