createrepo and smart channel
来源:互联网 发布:海南知和行书局 编辑:程序博客网 时间:2024/06/03 09:21
1. createrepo is python script to setup rpm repositories.
mkdir ~/repo and copy your rpms into the directory.
2. createrepo ~/repo, then there will be repomd(meta data)
bash-4.3> ls ~/repo/repodata/2d6fe7e0c5060befbe00b6767da7d009f6efd165af7d46976b47ab69cf089b21-primary.sqlite.bz2487f80da6e2c0ddf70c841d19027478b590c1f70f6b55ec77df88f5ba3837b2a-primary.xml.gz4c9f6c5213785b05175639c53e5ad2c84921b9cf61730b5ae4960d36e452ee62-filelists.xml.gz8379480a2469b14c5734066b437d0eef06277bee21b781d84aedf18c08ed527b-filelists.sqlite.bz2b8c7ef799f45acd12a2a4897b1e6fce0d5d1efe9b00f88f885f9c2a01557731e-other.xml.gzd61750ab5ec7d815953ecd8af7565d0afe0e224517ebed02a0c6c31447e4dd47-other.sqlite.bz2repomd.xmlbash-4.3> ls ~/repo/repodata/2d6fe7e0c5060befbe00b6767da7d009f6efd165af7d46976b47ab69cf089b21-primary.sqlite.bz2487f80da6e2c0ddf70c841d19027478b590c1f70f6b55ec77df88f5ba3837b2a-primary.xml.gz4c9f6c5213785b05175639c53e5ad2c84921b9cf61730b5ae4960d36e452ee62-filelists.xml.gz8379480a2469b14c5734066b437d0eef06277bee21b781d84aedf18c08ed527b-filelists.sqlite.bz2b8c7ef799f45acd12a2a4897b1e6fce0d5d1efe9b00f88f885f9c2a01557731e-other.xml.gzd61750ab5ec7d815953ecd8af7565d0afe0e224517ebed02a0c6c31447e4dd47-other.sqlite.bz2repomd.xml3. Add it to apache server.
cat /etc/apach2/site-avaiable/001-repo.conf
<VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual hosts, the ServerName # specifies what hostname must appear in the request's Host: header to # match this virtual host. For the default virtual host (this file) this # value is not decisive as it is used as a last resort host regardless. # However, you must set it for any further virtual host explicitly. #ServerName www.example.com ServerName test.com ServerAlias www.test.com DocumentRoot /var/www/repo # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. # It is also possible to configure the loglevel for particular # modules, e.g. #LogLevel info ssl:warn ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined # For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to # include a line for only one particular virtual host. For example the # following line enables the CGI configuration for this host only # after it has been globally disabled with "a2disconf". #Include conf-available/serve-cgi-bin.conf </VirtualHost># vim: syntax=apache ts=4 sw=4 sts=4 sr noet4. setup web Document root
ln -s ~/repo /var/www/repo/
5. enable the website
ln -s /etc/apache2/site-available/0001-repo.conf /etc/apache2/site-enable/
6. service apache2 restart
on the client:
smart channel --add mysource type=rpm-md baseurl=http://www.test.com/repo/
then smart update
smart install your_pkg
0 0
- createrepo and smart channel
- createrepo
- createrepo
- createrepo
- Templates and Smart Pointers
- Bluetooth4.0 smart ready and bluetooth smart
- Bluetooth4.0 smart ready and bluetooth smart
- Golang goroutine and channel
- Tablet PC and Smart Board
- Smart Auto-Complete (and Easy )
- CopyFile and Directory By channel
- Channel, Sink, Sink Chain and Channel Sink Provider(转)
- The pdf of Gaussian Channel and Complex Gaussian Channel
- channel ~ Channel is unrecoverably broken and will be disposed!
- INVEST in Good Stories, and SMART Tasks
- Bringing Big Data and Smart Energy Together
- CC3000 Smart Config - transmitting SSID and keyphrase
- CC3000 Smart Config - transmitting SSID and keyphrase
- OSSchedLock()函数透析 转自:跳跳盆盆——博客园http://www.cnblogs.com/pengwangguoyh/p/4446024.html
- 解决VS2010链接错误:LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏
- C#中的线程(二) 线程同步基础
- 采样示波器和实时示波器的原理与各自优势
- 例题6.20 信息解密 UVa1457
- createrepo and smart channel
- NOIP2012国王游戏
- 轻松python之文件专题-搜索文本并写入文件专题
- 数据结构基础 之 双链表
- Collection之List Vector ArrayList and linkedList
- 【后缀数组】 POJ 3882 Stammering Aliens 可重叠出现k次字符串
- maven仓库查询地址
- Android项目开发实战:倒计时
- Uvalive 6428 A+B(扩展欧几里得算法)