<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ubuntu,debian,redhat -linuxany.com &#187; dpkg</title>
	<atom:link href="http://www.linuxany.com/archives/tag/dpkg/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxany.com</link>
	<description>ubuntu,debian,redhat,fedora,centos</description>
	<lastBuildDate>Thu, 29 Jul 2010 13:01:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>制作deb包的三种方法</title>
		<link>http://www.linuxany.com/archives/432.html</link>
		<comments>http://www.linuxany.com/archives/432.html#comments</comments>
		<pubDate>Sat, 30 Aug 2008 14:24:44 +0000</pubDate>
		<dc:creator>x72</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[deb]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[nano]]></category>
		<category><![CDATA[source]]></category>

		<guid isPermaLink="false">http://www.linuxlaptop.cn/?p=467</guid>
		<description><![CDATA[制作deb包有三种方法，一种是将现有的文件打包，安装该包就像将打包的文件释放到某个目录；第二种是用deb源码打包; 第三种是用makefile源码打包,安装这种包就相当于用源码编译安装软件。
1. 第一种方法&#8212;&#8211;将现有的文件打包：
比如你要打包你当前debian系统的/usr/src/soft目录，然后在另一个debian系统上安装
改包时这些文件也释放到/usr/src/soft目录下：
在随便一个目录，比如是root下创建一个工作目录，比如是work
#cd /root#mkdir work#cd work
因为安装包的时候默认是将文件释放到根目录下，所以我们设定好它的路径：
#mkdir -p usr/src#cp -a /usr/src/soft usr/src#mkdir DEBIAN
用如下的方法在DEBIAN目录下创建一个control文件，并用加入内容：
#cat >DEBIAN/control/etc/apt/sources.list 文件中加入 deb-src 条目.
然后, 运行命令
# apt-get update 或# aptitude update就可以用下面的命令下载源码包：
# apt-get source packagename 或 # aptitude source packagename
通常会下载三个文件：.orig.tar.gz，.dsc 和 .diff.gz。对于 Debian 专用的软件包，最后一个文件不会下载，第一个文件的文件名中没有“orig”项。
dpkg-source 读取 .dsc 文件信息，将源码包解包到 packagename-version 目录，下载下来的源码包中有一个 debian/ 目录，里面是创建 .deb 包所需的文件。
例如:
$ apt-get source nano
Reading package lists&#8230; DoneBuilding dependency tree&#8230;
DoneNeed to get 1199kB of [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/432.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Debian系Linux上安装rpm档</title>
		<link>http://www.linuxany.com/archives/417.html</link>
		<comments>http://www.linuxany.com/archives/417.html#comments</comments>
		<pubDate>Sat, 30 Aug 2008 13:55:59 +0000</pubDate>
		<dc:creator>x72</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[alien]]></category>
		<category><![CDATA[deb]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://www.linuxlaptop.cn/?p=451</guid>
		<description><![CDATA[　　Debian系Linux不推荐使用rpm安装rpm档，需要将其转为deb档，通过dpkg安装。但是在Ubuntu Server中，将rpm转为deb的工具alien默认是不安装的，我们需要手工安装他，安装工具为apt。
　　首先将apt的“源”列表/etc/apt/sources.list复制一个副本备份，然后把原来的“源”列表清空。
　　挂载Ubuntu Server的CD1。
　　使用命令apt-cdrom -m -d /cdrom add，注意要有管理员权限。
　　使用命令apt-get update。
　　使用命令apt-get dist-upgrade。
　　使用命令apt-get install alien进行alien的安装。
　　使用alien &#8211;scripts xxx.rpm开始进行rpm转换deb过程。
　　使用dpkg -i xxx.deb进行deb安装。
另外的解决办法：
　　1.apt-get install alien
　　　　alien -i xxx.rpm 直接安装
　　　　alien -d xxx.rpm　生成Debian包
　　2.apt-get install rpm
　　　　mkdir /var/lib/rpm
　　　　rpm &#8211;initdb
　　　　rpm -ivh xxx.rpm
　　3.自运行：在RedHat里有chkconfig,ntsysv 工具，在Debian下，可以用rcconf
　　　　apt-get install rcconf
　　　　rcconf
　　配置启动选项。
您还可能感兴趣的内容制作deb包的三种方法在Debian上安装SVN[原创]玩转Debian5——安装(LXDE桌面)Debian建立CVS服务器Debian/Ubuntu Linux下建立python的开发环境]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/417.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian(ubuntu)中玩转dpkg</title>
		<link>http://www.linuxany.com/archives/354.html</link>
		<comments>http://www.linuxany.com/archives/354.html#comments</comments>
		<pubDate>Mon, 18 Aug 2008 06:15:33 +0000</pubDate>
		<dc:creator>x72</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[dpkg]]></category>

		<guid isPermaLink="false">http://www.linuxlaptop.cn/?p=378</guid>
		<description><![CDATA[dpkg是一个Debian的一个命令行工具，它可以用来安装、删除、构建和管理Debian的软件包。
下面是它的一些命令解释：
1）安装软件
命令行：
dpkg -i 
示例：
dpkg -i avg71flm_r28-1_i386.deb 
2）安装一个目录下面所有的软件包
命令行：
dpkg -R
示例：
dpkg -R /usr/local/src
3）释放软件包，但是不进行配置
命令行：
dpkg &#8211;unpack package_file
如果和-R一起使用，参数可以是一个目录
示例：
dpkg &#8211;unpack avg71flm_r28-1_i386.deb
4）重新配置和释放软件包
命令行：
dpkg &#8211;configure package_file
如果和-a一起使用，将配置所有没有配置的软件包
示例：
dpkg &#8211;configure avg71flm_r28-1_i386.deb
5）删除软件包（保留其配置信息）
命令行：
dpkg -P
示例：
dpkg -P avg71flm
6）替代软件包的信息
命令行：
dpkg &#8211;update-avail

7）合并软件包信息
dpkg &#8211;merge-avail

8）从软件包里面读取软件的信息
命令行：
dpkg -A package_file
9）删除一个包（包括配置信息）
命令行：
dpkg -P
10）丢失所有的Uninstall的软件包信息
命令行：
dpkg &#8211;forget-old-unavail
11）删除软件包的Avaliable信息
命令行：
dpkg &#8211;clear-avail
12）查找只有部分安装的软件包信息
命令行：
dpkg -C
13）比较同一个包的不同版本之间的差别
命令行：
dpkg &#8211;compare-versions ver1 op ver2
14）显示帮助信息
命令行：
dpkg &#8211;help
15）显示dpkg的Licence
命令行：
dpkg &#8211;licence (or) dpkg &#8211;license
16）显示dpkg的版本号
命令行：
dpkg &#8211;version
17）建立一个deb文件
命令行：
dpkg -b directory [filename]
18）显示一个Deb文件的目录
命令行：
dpkg -c filename
19）显示一个Deb的说明
命令行：
dpkg -I filename [control-file]
20）搜索Deb包
命令行：
dpkg -l package-name-pattern
示例：
dpkg -I vim
21)显示所有已经安装的Deb包，同时显示版本号以及简短说明
命令行：
dpkg -l
22）报告指定包的状态信息
命令行：
dpkg -s package-name
示例：
dpkg -s ssh
23）显示一个包安装到系统里面的文件目录信息
命令行：
dpkg [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/354.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clone Your Ubuntu installation</title>
		<link>http://www.linuxany.com/archives/110.html</link>
		<comments>http://www.linuxany.com/archives/110.html#comments</comments>
		<pubDate>Thu, 27 Dec 2007 15:19:01 +0000</pubDate>
		<dc:creator>x72</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[dpkg]]></category>

		<guid isPermaLink="false">http://www.linuxplay.cn/index.php/archives/107</guid>
		<description><![CDATA[If you want to create a system that is similar to a different system you have already set up, it can be difficult to remember each and every package you had installed.This method works best when you are exporting to and importing from the same distribution and, specifically, the same releasefor example, exporting from Ubuntu [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/110.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
