rpm

linux下的jenkins卸载

时光总嘲笑我的痴心妄想 提交于 2019-12-14 16:28:25
卸载 1、rpm卸载 rpm -e jenkins 2、检查是否卸载成功 rpm -ql jenkins 3、彻底删除残留文件: find / -iname jenkins | xargs -n 1000 rm -rf 来源: CSDN 作者: 温和与热烈 链接: https://blog.csdn.net/qq_37340229/article/details/103539167

prefix and reloctable rpm package according to an other rpm prefix

坚强是说给别人听的谎言 提交于 2019-12-13 22:02:36
问题 I have install sample.rpm in /opt. I want samplw2.rpm find the relocation path of sample.rpm ad install itself in same place. is there any command or macro in spec file which check it befor installation or not? 回答1: I'm pretty sure this isn't possible; the file locations are fixed. The easiest solution would be to put them in a known location, and then set up a symlink in your %post , e.g. linking /opt/sample2 to /usr/local/sample2 where the latter is where the RPM puts the files. 来源: https:/

How to install two different versions of same rpm and make them work parallely

孤人 提交于 2019-12-13 19:00:40
问题 Currently I am trying to install a rpm secured_soft_2.0.0.rpm and i am unable to install it as we already have secured_soft_1.3.0 installed. Requirement is that we need to have both the versions installed. Complexities : These package inturn have dependent rpm's (lot of them ) and all these interdependent rpm's also have versions ex: secured_soft_1.3.0 works only with packages which are of version 1.3, and secured_soft_2.0.0.rpm work only with dependecies of version 2.0 only. So all these

“Missing” lib for rpm install when it is present in rpm file

与世无争的帅哥 提交于 2019-12-13 13:02:45
问题 I'm generating an rpm file for centos but when I try to install it on a clean machine it fails with: --> Running transaction check ---> Package grass.x86_64 0:6.4.4-1.el6 will be installed --> Processing Dependency: libgrass_rli.so()(64bit) for package: grass-6.4.4-1.el6.x86_64 --> Finished Dependency Resolution Error: Package: grass-6.4.4-1.el6.x86_64 (/grass-6.4.4-1.el6.x86_64) Requires: libgrass_rli.so()(64bit) which would be fine except that the rpm contains libgrass_rli.so. [vagrant

How to create RPM package for systemd framework?

…衆ロ難τιáo~ 提交于 2019-12-13 10:29:45
问题 I need to create a daemon process which should be started through init.d. I have experience of creating the package and installing it with appropriate start/stop scripts managed through init.d. However recently it is being managed through systeemd. Please let me know if there is basic tutorial to understand it and how to package so that installation of RPM should be as per systemd framework. 回答1: Everything you need should be here on Fedora's page, under Packaging:Systemd. 来源: https:/

Tool that figures out order in which patches should be applied? [closed]

纵然是瞬间 提交于 2019-12-13 08:17:19
问题 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 3 years ago . Background: I am trying to get Ubuntu to work under FIPS mode. One of the packages that I need to FIPSify is openssh. According to CentOS openssh *.spec file one of the patches that they apply on top of openssh source code is openssh-6.6-fips.patch . However, debian packaging code does not have that patch at all

Python distutils - Change Path RPM Installs To

南楼画角 提交于 2019-12-13 04:59:20
问题 I have Python 2.7.5 and am using distutils ( python setup.py bdist_rpm ) to create the following RPM... me@hostname:/tmp/dist$ rpm -qpil myApp-2.0.146-1.noarch.rpm Name : myApp Version : 2.0.146 Release : 1 Architecture: noarch Install Date: (not installed) Group : Development/Libraries Size : 290576 License : GPL Signature : (none) Source RPM : myApp-2.0.146-1.src.rpm Build Date : Wed 15 Oct 2014 02:57:08 PM EDT Build Host : hostname.example.lan Relocations : /usr Vendor : Me <me@example.lan

apache2-prefork-dev installation

痴心易碎 提交于 2019-12-13 04:58:06
问题 I currently use yum and am trying to install apache2-prefork-dev package by the command line sudo yum install apache2-prefork-dev But i get the response: No package apache2-prefork-dev available. Is the package under a different name for rpm or centos? 回答1: It turned out to be sudo yum install httpd-devel 来源: https://stackoverflow.com/questions/25650727/apache2-prefork-dev-installation

Compare RPM Packages using Python

半世苍凉 提交于 2019-12-13 04:20:30
问题 I'm trying to compare a csv file containing required Linux packages with the current installed packages. The comparison should output any packages not installed or newer than the current installed packages. The problem is that I'm unable to loop through the list of installed packages and show all hits, for instance packages with the same name and version, but different architecture should be shown twice(for instance compat-libstdc++-33), but I only getting the first hit with the script below.

Installing RPM doesn't run all the %install actions listed in .spec

三世轮回 提交于 2019-12-13 03:55:43
问题 TL;DR: I made a .spec file that successfully builds a .rpm , but rpm -i <file>.rpm doesn't do all the actions I think it should. Why? Excerpt from <file>.spec : %install sudo python2.7 -m pip install 'tornado<5' ...#other pip commands... cp -r $RPM_BUILD_DIR/%{name}-%{version}/* %{buildroot} (I know this isn't the ideal way to do it, but I'm forced to use CentOS 6 and can't upgrade the system version of python because corporate/shared environment so this was the best way I could figure out.)