rpm

RPM - Install time parameters

怎甘沉沦 提交于 2019-12-18 03:17:09
问题 I have packaged my application into an RPM package, say, myapp.rpm . While installing this application, I would like to receive some inputs from the user (an example for input could be - environment where the app is getting installed - "dev", "qa", "uat", "prod"). Based on the input, the application will install the appropriate files. Is there a way to pass parameters while installing the application? P.S.: A possible solution could be to create an RPM package for each environment. However,

Linux&Shell选择问答判断32题

喜你入骨 提交于 2019-12-18 02:38:15
问答题 1.每分钟清空/tmp/内容 ; 每个星期三的下午6点和8点的第5到15分钟之间备份/home/jinghang文件夹下的数据到 /opt/software [答案] / * * * * /bin/rm -rf /tmp/* 5-15 18,20 * * 3 /bin/cp /home/jinghang/* /opt/software/ 2.Linux如何查看进程,和杀死进程? [答案] ps -aux 查看所有用户所有进程 ps -ef 查看子父进程之间的关系 ps -aux | grep 进程名称 kill -9 pid(进程号) killall 进程名称 3.linux如何安装软件?有几种方式,相关参数有什么含义? [答案] rpm 安装本地软件包 rpm -qa 软件包名 rpm -qi 软件包 rpm -e 软件包 rpm -ihv 软件包名 -i install,安装 -v 显示详细信息 -h 展示安装的进度条 yum -y [选项] 软件名 install 安装rpm软件包 update 更新rpm软件包 check-update 检查是否有可用的更新rpm软件包 remove 删除指定的rpm软件包 list 显示软件包信息 clean 清理yum过期的缓存 yum clean all deplist 显示yum软件包的所有依赖关系 4

4.2.软件包管理

北城以北 提交于 2019-12-18 01:28:00
一.RPM包 • RPM Package Manager,RPM包管理器 – rpm -q 软件名 – rpm -ivh 软件名-版本信息.rpm – rpm -e 软件名 eg: ]# rpm -q firefox #查询软件是否安装 ]# rpm -q haha ]# rpm -q vsftpd ]# rpm -ivh /root/vsftpd-3.0.2-9.el7.x86_64.rpm #安装软件包 ]# rpm -q vsftpd vsftpd-3.0.2-9.el7.x86_64 ]# rpm -e vsftpd #卸载软件 ]# rpm -q vsftpd 未安装软件包 vsftpd ]# rpm -ivh /root/vsftpd-3.0.2-9.el7.x86_64.rpm #安装软件包 ]# rpm -q vsftpd ]# rpm -ql vsftpd #软件的安装清单 了解:导入红帽签名信息 ]# wget http://classroom.example.com/content/rhel7.0/x86_64/dvd/RPM-GPG-KEY-redhat-release ]# rpm --import /root/RPM-GPG-KEY-redhat-release ]# rpm -e vsftpd ]# rpm -ivh /root/vsftpd-3.0

How do I extract the contents of an rpm?

这一生的挚爱 提交于 2019-12-17 22:05:11
问题 I have an rpm and I want to treat it like a tarball. I want to extract the contents into a directory so I can inspect the contents. I am familiar with the querying commands of an uninstalled package. I do not simply want a list of the contents of the rpm. i.e. $ rpm -qpl foo.rpm I want to inspect the contents of several files contained in the rpm. I do not want to install the rpm. I am also aware of the rpms ability to do additional modifictions in the %post sections, and how to check for

大数据Linux和shell测试

雨燕双飞 提交于 2019-12-17 21:51:35
大数据Linux和shell测试 1[问答题]1.每分钟清空/tmp/内容 2.每个星期三的下午6点和8点的第5到15分钟之间备份/home/jinghang文件夹下的数据到 /opt/software [答案] /1 * * * * /bin/rm -rf /tmp/ 5-15 18,20 * * 3 /bin/cp /home/jinghang/* /opt/software/ [分数]5 [分类]Linux [标签]简单 [解析] 2[问答题]Linux如何查看进程,和杀死进程? [答案] ps -aux 查看所有用户所有进程 ps -ef 查看子父进程之间的关系 ps -aux | grep 进程名称 kill -9 pid(进程号) killall 进程名称 [分数]4 [分类]Linux [标签]简单 [解析] 3[问答题]linux如何安装软件?有几种方式,相关参数有什么含义? [答案] rpm 安装本地软件包 rpm -qa 软件包名 rpm -qi 软件包 rpm -e 软件包 rpm -ihv 软件包名 -i install,安装 -v 显示详细信息 -h 展示安装的进度条 yum -y [选项] 软件名 install 安装rpm软件包 update 更新rpm软件包 check-update 检查是否有可用的更新rpm软件包 remove

Failing an RPM install programmatically in a spec step

亡梦爱人 提交于 2019-12-17 19:35:00
问题 I'm making an RPM. This particular RPM has requirements that can't be expressed as RPM prerequisites, lets call them a particular filesystem/disk configuration. Currently the failure happens after install, at runtime, when the requirements aren't met. I can check for the required prerequisites in the %install, section of my script. However, I can't figure out how to fail the install if certain criteria are met. Is it possible to fail an rpm install at runtime via some trigger in the %install

RedHat EL5 x86-64上命令行安装Oracle 10g笔记

大兔子大兔子 提交于 2019-12-17 17:53:47
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> RedHat EL5 x86-64 上命令行安装 Oracle 10g 笔记 声明:本文中所描述的系 统 命令,未 经 特殊 标 示,均 为 “#” 代表 root 权 限, “$” 代表 oracle 权 限。 安装前的准备 准备工作要用登录为 root 用户来进行。 选择安装环境的语言 Oracle 安装时可以通过环境变量 LANG 指定安装语言,如果 Linux 命令行不能显示中文,就要将语言环境设置为英语。 例如 : export LANG=en_US.UTF-8 修改 gennttab Oracle 10g 在一些 Linux 系统下安装可能会被中断,在安装日志文件 $ORACLE_HOME/install/make.log 里可以看见以下错误信息: /bin/sed: -e expression #1, char 7: unterminated `s' command 要解决这个问题就必须编辑文件 gennttab 。 先解压 Oracle 安装目录下的 stage/Components/oracle.network.rsf/10.2.0.1.0/1/DataFiles/filegroup6.jar ,可以用以下方法之一进行解压 用 jar 解压: $jar -xf filegroup6.jar

How to make rpm auto install dependencies

主宰稳场 提交于 2019-12-17 17:21:57
问题 I have built two RPM packages proj1-1.0-1.x86_64.rpm libtest1-1.0-1.x86_64.rpm proj1 depends on the file libtest1.so being present and it is reflected correctly in the RPM packages as seen here: user@my-pc:~$ rpm -qp --requires proj1-1.0-1.x86_64.rpm libtest1.so()(64bit) user@my-pc:~$ rpm -qp --provides libtest1-1.0-1.x86_64.rpm libtest1.so()(64bit) The installation of proj1 fails due to a missing dependency. user@my-pc:~$ rpm -ivh proj1-1.0-1.x86_64.rpm error: Failed dependencies: libtest1

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

安装包RPM包或源码包

自闭症网瘾萝莉.ら 提交于 2019-12-17 11:33:52
RPM工具 # mount /dev/cdrom /mnt 挂载光盘 # rpm 软件包管理器 -i 安装(需要安装包完整名称) -v 可视化 -h 显示安装进度 -U 表示升级 -q 查询包是否安装 -qa 查询当前系统已安装的所有包 -qi 查询已安装的包的相关信息 -ql 查询包的安装文件 -qf 某个文件属于哪个包(命令后跟绝对路径) -e 卸载(后跟软件包名称) --force 强制安装 --nodeps 依赖包没装也要安装这个包 yum工具 yum工具比rpm工具更方便,优势是可以联网下载所需要的安装包,还可以自动安装依赖包 # yum list 列出所有RPM包资源 search 搜索rpm包(后跟关键词) install -y 安装命令(回答yes) remove -y 卸载命令(回答yes) update -y 升级命令(回答yes) 使用本地光盘制作yum源 (不能联网时使用) # mount /dev/cdrom /mnt 挂载光盘 删除/etc/yum.repos.d目录下所有的repo文件(先备份) 创建新文件dvd.repo(加入内容) 刷新生成缓存 来源: https://www.cnblogs.com/tui463/p/12053424.html