rpm

RPM-Build -How to print error message at rpm install at client

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 03:28:06
问题 my requirement is that i want to print some message on screen if rpm install fails in any case at client machine.or display message on screen like rpm install fail due to any of the generated reasons.like other standard rpm gives. and i am not making any c file or make command in my .spec file . Everything i was doing in spec file itself.plz suggest how to print such type of things in client console using spec file. yes that is not my concern --test i have give just example.my excet

mysql数据库管理-启动rpm安装

梦想的初衷 提交于 2019-12-11 02:35:29
[root@rac2 ~]# service mysqld start Initializing MySQL database: Installing MySQL system tables... OK Filling help tables... OK To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: /usr/bin/mysqladmin -u root password 'new-password' /usr/bin/mysqladmin -u root -h rac2 password 'new-password' Alternatively you can run: /usr/bin/mysql_secure_installation which will also give you the option of removing the test databases

不小心把Python2给删了,导致yum无法使用

╄→尐↘猪︶ㄣ 提交于 2019-12-11 02:15:33
系统:CentOS 7.4 装了Python3觉得Python2没用了删了python2 导致yum不可用 1、 卸载现有python rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps #卸载python whereis python |xargs rm -frv ##删除所有残余文件 whereis python ##验证删除,返回无结果 2、删除现有的yum rpm -qa|grep yum|xargs rpm -ev --allmatches --nodeps # 删除yum whereis yum |xargs rm -frv # 删除残留文件 whereis yum # 验证删除完成 下载文件源 http://vault.centos.org/ 首先在这里找到服务器对应的版本,如 7.4 进入这里目录 找到对应版本的rpm,替换下面的文件。 下载并安装,注意顺序,先安装python 然后 yum。不然安装后还会报错,重新来一遍。 # python安装 rpm -ivh --nodeps http://vault.centos.org/7.4.1708/os/x86_64/Packages/python-2.7.5-58.el7.x86_64.rpm rpm -ivh --nodeps http://vault

Building with rpmbuild under Ubuntu

夙愿已清 提交于 2019-12-11 01:26:49
问题 I need to build yum with a patch under Ubuntu 10.4 (reason being that i need a yum with chroot support for my vserver instance) Since yum src for ubuntu where not avaliable (3rd party repos) i downloaded the source off the official repos and the patch off the linux-vserver. However, when i try to build it with rpmbuild -ba yum.spec It fails with error: Failed build dependencies: python is needed by yum-3.2.22-0.src gettext is needed by yum-3.2.22-0.src intltool is needed by yum-3.2.22-0.src

build rpm without compiling the source file

痞子三分冷 提交于 2019-12-11 00:04:29
问题 I am trying a sample rpm package with single file. In my source folder I have python_test_rpm.tar.gz which contains only one python script file. But, the file is not a valid python script. All I want to do is package this and deploy it in a specific folder. While executing the rpm build command it is showing the compilation/syntax error in the python script. How to skip this validation and make the build. rpmbuild command rpmbuild -v -bb Spec File: Name: python_test_rpm Version: 1 Release: 1

Maven RPM Plugin does not generate the scriptlets specified

主宰稳场 提交于 2019-12-10 23:33:55
问题 I am trying to create an rpm package with the help of the rpm-maven-plugin. All goes well until I try to have it generate the %pre scriptlet (or any scriptlet for that matter) The pom.xml excerpt is: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>rpm-maven-plugin</artifactId> <version>2.0-beta-2</version> <executions> <execution> <goals> <goal>attached-rpm</goal> </goals> </execution> </executions> <configuration> <copyright>Copyright 2010 XXX, Inc. All rights reserved</copyright>

Create log file when installing rpm

∥☆過路亽.° 提交于 2019-12-10 23:04:39
问题 What the best way to create a log file in an rpm spec file? The service I'm creating runs under an unprivileged user so cannot create files in /var/log/. 回答1: You could create /var/log/myservice/ directory and make it owned by your user. Inside %install or make install: (ignoring buildroot & such) install -d /var/log/myservice -o serviceuser -m 750 This assumes you are running your service similarly to apache which often runs as user apache and still puts logs in var/log/apache Then add the

Unexpected RPM conflict on %config(noreplace) files

那年仲夏 提交于 2019-12-10 21:51:51
问题 I'm creating my own RPM using rpmbuild . My RPM contains config files which should never get overridden , even if the RPM contains a new version of these config files. To archive this, I tagged these with %config(noreplace) /opt/mypackage/etc/* in the spec file. According to the documentation and this site, a locally modified file will never get overridden in this case which is exactly what I want. However, when doing the following operations: Install version 1 of the RPM Change configuration

Installing Virtual box on a fresh SLES 11 machine - python

吃可爱长大的小学妹 提交于 2019-12-10 20:38:28
问题 How can I install virtual box on a fresh SLES 11 machine? I've downloaded the rpm from: wget http://download.virtualbox.org/virtualbox/4.3.6/VirtualBox-4.3-4.3.6_91406_sles11.0-1.i586.rpm And when i tried yast2 -i or rpm -ivh , I get these error: Package VirtualBox-4.3-4.3.6_91406_sles11.0-1.i586.rpm could not be installed. Details: Subprocess failed. Error: RPM failed: error: Failed dependencies: libasound.so.2 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i586 libGL.so.1 is needed by

How to install GNU parallel (noarc.rpm) on CentOS 7

喜欢而已 提交于 2019-12-10 20:32:49
问题 I want to install GNU parrallel on Centos 7 There is not much info to find. Can someone explain me how to do this? This is some useful info I found 回答1: The 10 seconds installation is: $ (wget -O - pi.dk/3 || lynx -source pi.dk/3 || curl pi.dk/3/ || \ fetch -o - http://pi.dk/3 ) > install.sh $ sha1sum install.sh | grep 3374ec53bacb199b245af2dda86df6c9 12345678 3374ec53 bacb199b 245af2dd a86df6c9 $ md5sum install.sh | grep 029a9ac06e8b5bc6052eac57b2c3c9ca 029a9ac0 6e8b5bc6 052eac57 b2c3c9ca $