rpmbuild

centos5的kernel source

我的未来我决定 提交于 2019-12-19 02:45:20
2. 如果你真的需要整个内核的源代码 如果你真的因为某个原因需要整个内核的源代码,它是有被提供的。 2.1. CentOS 4 与 5 以 root 的身份安装 rpm-build、redhat-rpm-config 及 unifdef 组件: [root@host]# yum install rpm-build redhat-rpm-config unifdef 以一个 不是 root 用户 的户口,创建一个以 ~/rpmbuild 为基础的目录树: [user@host]$ cd[user@host]$ mkdir -p rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}[user@host]$ echo '%_topdir %(echo $HOME)/rpmbuild' > .rpmmacros 我们 强烈 推荐你 不要 以 root 的身份创建组件。(见: Building Source RPM as non-root under CentOS ) 从这些地方找寻内核的源代码: http://mirror.centos.org/centos/5/updates/SRPMS/(最新的更新/源代码组件) http://mirror.centos.org/centos/5/os/SRPMS/(最新的操作系统/源代码组件) (针对 CentOS-4

Creating Python RPM

别等时光非礼了梦想. 提交于 2019-12-18 13:39:32
问题 I have been reading about creating an RPM for Python 2.6.4. In this page: http://docs.python.org/distutils/builtdist.html it says you can create an RPM of the current Python using python setup.py bdist_rpm . The question's I have are: Do you have to type this command in your Python installation directory? Does this command, package all the modules you have installed into the RPM? Is this the correct command to do this? Are there any other suggestion's that would make this easier? Okay I

Automatically install build dependencies prior to building an RPM package

♀尐吖头ヾ 提交于 2019-12-18 10:59:20
问题 I am trying to build a .rpm package. I have just followed the steps to do that. Till now all steps were gone fine but now i just stuck with this step. I just ran the following command and got this error: rpmbuild -ba asterisk.spec error: Failed build dependencies: gtk2-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64 libsrtp-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64 [... more ...] freetds-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64 uw-imap-devel is needed by asterisk-1.8.12

rpmbuild: using script files contained in the package in %pre script

旧时模样 提交于 2019-12-18 07:23:48
问题 I have to perform multiple elaborate "sanity" checks on target system before an RPM package installs/upgrades. I want to contain the procedure in a script (bash/python/php or otherwise) alongside other accessory files (such as SQL scripts) which wouldn't be installed with other files but only used during pre(install|upgrade). Where do I put these files for rpmbuild and how do I call/reference them (paths, etc.) inside %pre section and inside main script? How do I reference then-to-be

How to pass user defined parameters to rpmbuild to fill variables

送分小仙女□ 提交于 2019-12-18 01:56:09
问题 is it possible to pass parameters to rpmbuild to fill user defined variables that are called inside the spec file? Example: The user defined variable %{foobar} which is called in the .spec file (but empty) should be filled with the variable which is passed when executing the rpmbuild command rpmbuild -bb --foobar="Foo" somespecfile.spec 回答1: rpmbuild -bb --define '_foobar Foo' somespecfile.spec and refer it within the spec as %{_foobar} (the _ is a convention, not a must) 回答2: The closest you

How to pass user defined parameters to rpmbuild to fill variables

[亡魂溺海] 提交于 2019-12-18 01:53:09
问题 is it possible to pass parameters to rpmbuild to fill user defined variables that are called inside the spec file? Example: The user defined variable %{foobar} which is called in the .spec file (but empty) should be filled with the variable which is passed when executing the rpmbuild command rpmbuild -bb --foobar="Foo" somespecfile.spec 回答1: rpmbuild -bb --define '_foobar Foo' somespecfile.spec and refer it within the spec as %{_foobar} (the _ is a convention, not a must) 回答2: The closest you

git使用及配置

点点圈 提交于 2019-12-17 23:08:50
GIT git:自动备份的服务器(版本控制软件) 作者:linus 原理:服务器(共享一个目录)作为版本库(版本控制的核心),客户连上服务器后,上传文档,git服务器会自动标记文档版本号.每次上传会更新版本号 特点: 支持任意数量的客户端 客户端可以通过写数据库分享代码(支持多人协作) 集中式:<服务器> 开发者之间公用一个仓库 所有操作需要联网 所有版本 每次下载都下载最新版本 断开服务器连接就不能再进行修改了,否则有可能造成数据丢失 分布式:<每个开发者都是一个仓库的完整克隆,每个人都是服务器> 支持断网操作 客户端有服务端的所有的版本 连接服务后会自动上传本机的所有版本 远程服务端(1.clone数据到本地 4.push提交远程服务) ^ | | v 3.commit提交git仓库 git仓库 < ------------------------------------ | | v 2.修改后add提交暂存区 | 工作区 ----------------------------------- > 暂存区 git服务器部署 web1: yum -y install git #yum安装git软件 mkdir /var/git #创建共享目录(仓库)存放点 git init /var/git/project --bare #初始化一个空的仓库 web2: yum -y

What is the minimum I have to do to create an RPM file?

最后都变了- 提交于 2019-12-17 15:00:01
问题 I just want to create an RPM file to distribute my Linux binary "foobar", with only a couple of dependencies. It has a config file, /etc/foobar.conf and should be installed in /usr/bin/foobar. Unfortunately the documentation for RPM is 27 chapters long and I really don't have a day to sit down and read this, because I am also busy making .deb and EXE installers for other platforms. What is the absolute minimum I have to do to create an RPM? Assume the foobar binary and foobar.conf are in the

【12.16】redis 集群

为君一笑 提交于 2019-12-17 00:15:13
【12.16】redis 集群 21.22 redis集群介绍 21.23/21.24 redis集群搭建配置 21.25 redis集群操作 21.22 redis集群介绍 多个 redis 节点网络互联,数据共享 所有的节点都是一主一从(可以是多个从),其中从不提供服务,仅作为备用 不支持同时处理多个键(如mset/mget),因为 redis 需要把键均匀分布在各个节点上,并发量很高的情况下同时创建键值会降低性能并导致不可预测的行为。 支持在线增加、删除节点 客户端可以连任何一个主节点进行读写 类似于磁盘做reid 21.23/21.24 redis集群搭建配置 1、场景设置: 两台机器,分别开启三个 Redis 服务(端口) A机器上三个端口7000,7002,7004,全部为主 B机器上三个端口7001,7003,7005,全部为从 两台机器上都要编译安装redis,然后编辑并复制 3 个不同的 redis.conf,分别设置不同的端口号、dir等参数,还需要增加 cluster 相关参数,然后分别启动6个 redis 服务 2、在 A 机器编辑 redis_7000,redis_7002,redis_7004 [ root@arslinux-01 ~ ] # vim redis_7000.conf port 7000 bind 192.168.194.130

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:/