10_自定义yum仓库、源码编译安装

1.自定义yum仓库

1.1 源码仓库下:/root/tools/other
]# createrepo .
]# ls
ntfs-3g-2014.2.15-6.el6.x86_64.rpm
repodata

1.2 写入
]# vim /etc/yum.repos.d/ceph.repo
[myrpm]
name=other
baseurl=file:///root/tools/other
enabled=1
gpgcheck=0

######################

2.源码编译安装 inotifywait inotifywatch

2.1 源码 目录下:/root/tools/inotify-tools-3.13
]# ./configure --prefix=/opt/myrpm
]# make && make install

2.2 查看生成的文件
]# ls /opt/myrpm/
bin include lib share

2.3 查看生成的程序
]# ls /opt/myrpm/bin/
inotifywait inotifywatch

猜你喜欢

转载自www.cnblogs.com/luwei0915/p/12131067.html