从Dreamhost的Debian档案移到Debian本身

这是目前运行Debian的托pipeDreamhost帐户的sources.list文件

 # Generated by ndn-autoupdate deb http://debian.di.newdream.net/ lenny ndn deb http://debian.newdream.net/ lenny main contrib non-free deb http://security.debian.org/ lenny/updates main contrib non-free deb http://www.backports.org/debian/ lenny-backports main contrib non-free deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free deb http://debian.dc-uoit.net/debian-multimedia/ lenny main 

什么是迁移到Debian本身的最佳方式? 我想只用上游的Lenny Squeeze档案? 似乎Dreamhost安装了一堆我不想要的修改包。

ndn-apache22 ndn-apache22-modcband ndn-apache22-modfastcgi ndn-apache22-modfcgid ndn-apache22-modlimitipconn ndn-apache22-modpagespeed ndn-apache22-modsecurity2 ndn-apache22-modxsendfile ndn-apache22- php ndn-apache22-php5 ndn-apache22-svn ndn-autoupdate ndn-crashlog ndn-crontab ndn-daemontools ndn-darwinss ndn-debuglogging ndn -dh-base ndn -dh-web-missing ndn-dh-web-parking ndn- dh-web-phpmyadmin ndn-everywhere ndn-imagick ndn-interpreters ndn-iptables ndn-java ndn-keyring ndn-lighttpd ndn-mailcerts ndn-megacli ndn-misc ndn-miva ndn-mongodb ndn-netsaint-nrpe ndn-netsaint-插件ndn-nginx ndn-ntpdate-init ndn-passenger ndn-php4-compat ndn-php5-cgi ndn-php5-mongo ndn-php5-xcache ndn-php53 ndn-php53-suhosin ndn-procwatch ndn-rubygems ndn-safetynet ndn -sec ndn-twcli ndn-vserver ndn-web

我真的只是喜欢Debian提供的基本或服务器使用的任何元软件包?

只需切换档案,安装基于Debian的元组件,然后移除Dreamhost安装的软件包就足够了。

看起来他们只是添加了自己的档案,除了“标准”lenny。 你可能只需从文件中删除“newdream”服务器以及(可能的)backports和debian-multimedia服务器,添加一个正常的lenny镜像, apt-get update ,然后安装你想要的软件包。 如果ndn包的devise是正确的,他们应该与“标准”包冲突,所以当你要求安装标准包时,apt会replace匹配的ndn包而不用太大惊小怪(你可能需要安装所有你想要的包立刻)。 然后删除所有剩下的ndn软件包。

也就是说,这个列表中的很多东西都不可用于直接lenny(大多数我不认可,必须定制为dreamhosts,删除这些可能是一个坏主意),backports.org doesn'没有php5.3的lenny。 如果你想要lenny的php5.3,你需要dotdeb.org存储库 。

至于“任何元组包”我不确定你的意思。 如果您正在寻找某种“默认”软件包,那么tasksel程序(在同名软件包中)允许您select一个服务器angular色(或多个angular色),并自动安装与该angular色相匹配的软件包(例如,networking服务器或邮件服务器)。

我只是想明确地说我做了什么让我的系统更像香草/上游Debian。

  1. sudo apt-get install debfoster
  2. 更改存储库。 更新/etc/apt/sources.list最新的Debian善良。
  3. sudo apt-get update
  4. 删除蹩脚的Dreamhost元软件包enmassé: dpkg --get-selections 'ndn*' | awk '{if ($2 == "install") { print $1 } }' | xargs sudo dpkg -r dpkg --get-selections 'ndn*' | awk '{if ($2 == "install") { print $1 } }' | xargs sudo dpkg -r
  5. 清理不再使用的东西, apt-get autoremove
  6. debfoster清理你可能不需要的东西。 [P]rune不吸引你的元组, – 5分钟左右后退出… – 足够好。
  7. sudo apt-get dist-upgrade

东西会打破。 基本的Debian经验将会被克服。 Dreamhost安装了一些软件包,比如libwww-twilio-api-perl ,它们没有用ndn-作为前缀。 这些软件包需要在某个时候被强制删除,因为它们会与上游的Debian冲突。 在libwww-twilio-api-perl的情况下,它声称它提供了/usr/share/perl/5.10所以Debian Perl软件包不能覆盖/usr/share/perl/5.10 。 我必须强制删除它和另外一两个包。

只有一个configuration问题,我有一个bash.rcbash.profile 。 上游没有设置rlimits。 我决定去那个。

强制删除意味着dpkg -r <conflicting package>

首先,准备手动迁移configuration或手动修复像Apache和所有其他相关软件包的破碎configuration。 如果这个系统很重要的话,我会在尝试这个之前支持它。

  1. 更新你的源文件到香草lenny
  2. sudo env DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confnew" -yy dist-upgrade – 这会自动升级到lenny
  3. aptitude search ?obsolete – 这会告诉你一切不在香草莱尼。
  4. sudo aptitude remove ~o – 这将删除所有不在香草莱尼,但应该离开configuration文件。
  5. sudo apt-get install apache2 ... – 安装你想要的任何Debian软件包。

你得到这个工作后,我强烈build议升级到下一个挤压和重复步骤2-4挤压源文件。