remove not used package in ubuntu server 10.04

1.
租用了一個VPS,為慳錢用最平plan,OS 好明顯係hosting用返佢地習慣的install setting
但我選擇的plan分配的空間同ram實在太少,我想remove咁d package等空間同ram鬆動d
重裝系統基本不可能
有無咩好方案?或能提供ubuntu 的minimal install 的package list供我比對嗎?

2.
我準備set 個drupal site, 除了apache+Mysql+php,有比較lightweight的選擇嗎

1. 用 dpkg -l list all installed package, 再跟自己要求加減
2. 可以用 nginx /lighttpd 代替

TOP

回復 2# tracker
其實我知道如何找installed package,所以我才提出可否有師兄試過的minimal install setting作比對

現在用Vbox試緊呢個tutorial
http://www.howtoforge.com/minimal-ubuntu-8.04-server-install
在10.04是否work,ok後就睇呢個的package list 去對

TOP

回復 3# lokrix

我的 Ubuntu Server x64 10.04 是 minimal-install,只用過 apt-get update & upgrade 和裝了 build-essential,以下 list 是用 dpkg --get-selections 製作:
  1. adduser
  2. apparmor
  3. apparmor-utils
  4. apport
  5. apport-symptoms
  6. apt
  7. apt-transport-https
  8. apt-utils
  9. aptitude
  10. at
  11. base-files
  12. base-passwd
  13. bash
  14. bash-completion
  15. bind9-host
  16. binutils
  17. bsdmainutils
  18. bsdutils
  19. build-essential
  20. busybox-initramfs
  21. busybox-static
  22. byobu
  23. bzip2
  24. ca-certificates
  25. command-not-found
  26. command-not-found-data
  27. console-setup
  28. console-terminus
  29. coreutils
  30. cpio
  31. cpp
  32. cpp-4.4
  33. cpu-checker
  34. cron
  35. dash
  36. debconf
  37. debconf-i18n
  38. debianutils
  39. dhcp3-client
  40. dhcp3-common
  41. diffutils
  42. dmidecode
  43. dmsetup
  44. dnsutils
  45. dosfstools
  46. dpkg
  47. dpkg-dev
  48. e2fslibs
  49. e2fsprogs
  50. ed
  51. eject
  52. fakeroot
  53. file
  54. findutils
  55. friendly-recovery
  56. ftp
  57. fuse-utils
  58. g++
  59. g++-4.4
  60. gcc
  61. gcc-4.4
  62. gcc-4.4-base
  63. geoip-database
  64. gettext-base
  65. gnupg
  66. gnupg-curl
  67. gpgv
  68. grep
  69. groff-base
  70. grub-common
  71. grub-pc
  72. gzip
  73. hdparm
  74. hostname
  75. ifupdown
  76. info
  77. initramfs-tools
  78. initramfs-tools-bin
  79. initscripts
  80. insserv
  81. -info
  82. ation-report
  83. iproute
  84. iptables
  85. iputils-arping
  86. iputils-ping
  87. iputils-tracepath
  88. irqbalance
  89. iso-codes
  90. kbd
  91. klibc-utils
  92. landscape-common
  93. language-pack-en
  94. language-pack-en-base
  95. language-selector-common
  96. laptop-detect
  97. less
  98. libacl1
  99. libapparmor-perl
  100. libapparmor1
  101. libatm1
  102. libattr1
  103. libbind9-60
  104. libblkid1
  105. libbsd0
  106. libbz2-1.0
  107. libc-bin
  108. libc-dev-bin
  109. libc6
  110. libc6-dev
  111. libcap-ng0
  112. libcap2
  113. libclass-accessor-perl
  114. libcomerr2
  115. libcurl3-gnutls
  116. libcwidget3
  117. libdb4.8
  118. libdbus-1-3
  119. libdbus-glib-1-2
  120. libdevmapper1.02.1
  121. libdns64
  122. libdrm-intel1
  123. libdrm-nouveau1
  124. libdrm-radeon1
  125. libdrm2
  126. libedit2
  127. libelf1
  128. libept0
  129. libexpat1
  130. libffi5
  131. libfont-afm-perl
  132. libfreetype6
  133. libfribidi0
  134. libfuse2
  135. libgc1c2
  136. libgcc1
  137. libgcrypt11
  138. libgdbm3
  139. libgeoip1
  140. libglib2.0-0
  141. libgmp3c2
  142. libgnutls26
  143. libgomp1
  144. libgpg-error0
  145. libgpm2
  146. libgssapi-krb5-2
  147. libhtml-format-perl
  148. libhtml-parser-perl
  149. libhtml-tagset-perl
  150. libhtml-tree-perl
  151. libidn11
  152. libio-string-perl
  153. libisc60
  154. libisccc60
  155. libisccfg60
  156. libiw30
  157. libjs-jquery
  158. libk5crypto3
  159. libkeyutils1
  160. libklibc
  161. libkrb5-3
  162. libkrb5support0
  163. libldap-2.4-2
  164. liblocale-gettext-perl
  165. liblockfile1
  166. liblwres60
  167. liblzma1
  168. libmagic1
  169. libmailtools-perl
  170. libmpfr1ldbl
  171. libncurses5
  172. libncursesw5
  173. libnewt0.52
  174. libnih-dbus1
  175. libnih1
  176. libnl1
  177. libntfs-3g75
  178. libpam-modules
  179. libpam-runtime
  180. libpam0g
  181. libparse-debianchangelog-perl
  182. libparted0debian1
  183. libpcap0.8
  184. libpci3
  185. libpcre3
  186. libpcsclite1
  187. libplymouth2
  188. libpng12-0
  189. libpopt0
  190. libpython2.6
  191. libreadline6
  192. librpc-xml-perl
  193. libsasl2-2
  194. libsasl2-modules
  195. libselinux1
  196. libsepol1
  197. libsigc++-2.0-0c2a
  198. libslang2
  199. libsqlite3-0
  200. libss2
  201. libssl0.9.8
  202. libstdc++6
  203. libstdc++6-4.4-dev
  204. libsub-name-perl
  205. libtasn1-3
  206. libterm-readkey-perl
  207. libtext-charwidth-perl
  208. libtext-iconv-perl
  209. libtext-wrapi18n-perl
  210. libtimedate-perl
  211. libudev0
  212. liburi-perl
  213. libusb-0.1-4
  214. libuuid1
  215. libwww-perl
  216. libx11-6
  217. libx11-data
  218. libxapian15
  219. libxau6
  220. libxcb1
  221. libxdmcp6
  222. libxext6
  223. libxml-libxml-perl
  224. libxml-namespacesupport-perl
  225. libxml-parser-perl
  226. libxml-sax-expat-perl
  227. libxml-sax-perl
  228. libxml2
  229. libxmuu1
  230. linux-firmware
  231. linux-headers-2.6.32-24
  232. linux-headers-2.6.32-24-server
  233. linux-headers-server
  234. linux-image-2.6.32-24-server
  235. linux-image-server
  236. linux-libc-dev
  237. linux-server
  238. locales
  239. lockfile-progs
  240. login
  241. logrotate
  242. lsb-base
  243. lsb-release
  244. lshw
  245. lsof
  246. ltrace
  247. lzma
  248. make
  249. makedev
  250. man-db
  251. manpages
  252. manpages-dev
  253. mawk
  254. memtest86+
  255. mime-support
  256. mlocate
  257. module-init-tools
  258. mount
  259. mountall
  260. mtr-tiny
  261. nano
  262. ncurses-base
  263. ncurses-bin
  264. net-tools
  265. netbase
  266. netcat-openbsd
  267. ntfs-3g
  268. ntpdate
  269. openssh-client
  270. openssl
  271. os-prober
  272. parted
  273. passwd
  274. patch
  275. pciutils
  276. perl
  277. perl-base
  278. perl-modules
  279. plymouth
  280. plymouth-theme-ubuntu-text
  281. popularity-contest
  282. powermgmt-base
  283. ppp
  284. pppconfig
  285. pppoeconf
  286. procps
  287. psmisc
  288. python
  289. python-apport
  290. python-apt
  291. python-central
  292. python-dbus
  293. python-gdbm
  294. python-gnupginterface
  295. python-gobject
  296. python-httplib2
  297. python-launchpadlib
  298. python-lazr.restfulclient
  299. python-lazr.uri
  300. python-minimal
  301. python-newt
  302. python-oauth
  303. python-openssl
  304. python-pam
  305. python-pexpect
  306. python-pkg-resources
  307. python-problem-report
  308. python-pycurl
  309. python-serial
  310. python-simplejson
  311. python-smartpm
  312. python-support
  313. python-twisted-bin
  314. python-twisted-core
  315. python-wadllib
  316. python-zope.interface
  317. python2.6
  318. python2.6-minimal
  319. readline-common
  320. rsync
  321. rsyslog
  322. screen
  323. sed
  324. sensible-utils
  325. sgml-base
  326. strace
  327. sudo
  328. sysv-rc
  329. sysvinit-utils
  330. tar
  331. tasksel
  332. tasksel-data
  333. tcpdump
  334. telnet
  335. time
  336. tzdata
  337. ubuntu-keyring
  338. ubuntu-minimal
  339. ubuntu-serverguide
  340. ubuntu-standard
  341. ucf
  342. udev
  343. ufw
  344. update-manager-core
  345. update-notifier-common
  346. upstart
  347. ureadahead
  348. usbutils
  349. util-linux
  350. uuid-runtime
  351. vim
  352. vim-common
  353. vim-runtime
  354. vim-tiny
  355. w3m
  356. wget
  357. whiptail
  358. wireless-crda
  359. wireless-tools
  360. wpasupplicant
  361. xauth
  362. xkb-data
  363. xml-core
  364. xz-utils
  365. zlib1g
複製代碼

TOP

就咁睇其實都好多無用, 用debian minimal install 就真係minimal

TOP

我還未能搞清楚那些package真係有用......
另外想問問,kernel有必要減磅嗎,有無建議可提供?
現在我被分配到的只有128M ram,10G HD

TOP

如果你慣用 apt 工具,用 debian 可能適合你的環境,ubuntu 有很多 packages 是取材自 debian (雖不是照搬)。

debian minimal-install 大概用 500MB 硬碟空間,而且預載 packages 少,連 less, sudo 等都要自己 apt-get,包沒有不必要的 packages 拖慢 kernel。

TOP