把 help 列出來看看..
要有root權限
#m-a prepare下載,安裝 kernel header,並且設定好 symlink。
Getting source for kernel version: 2.6.22-3-686安裝..
Kernel headers available in /lib/modules/2.6.22-3-686/build
Creating symlink...
apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
build-essential set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 218 not upgraded.
Done!
~$ sudo m-a -f auto-install virtualbox-ose-source原來 m-a 就是協助install module from source package 的tool。
Updated infos about 1 packages
Getting source for kernel version: 2.6.22-3-686
Kernel headers available in /lib/modules/2.6.22-3-686/build
apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 218 not upgraded.
Done!
download
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 218 not upgraded.
Need to get 0B/205kB of archives.
After this operation, 0B of additional disk space will be used.
(Reading database ... 147773 files and directories currently installed.)
Preparing to replace virtualbox-ose-source 1.5.6-dfsg-2 (using .../virtualbox-ose-source_1.5.6-dfsg-2_all.deb) ...
Unpacking replacement virtualbox-ose-source ...
Setting up virtualbox-ose-source (1.5.6-dfsg-2) ...
Updated infos about 1 packages
unpack
Extracting the package tarball, /usr/src/virtualbox-ose.tar.bz2, please wait...
"/usr/share/modass/overrides/virtualbox-ose-source" build KVERS=2.6.22-3-686 KSRC=/lib/modules/2.6.22-3-686/build KDREV=2.6.22-6 kdist_image
Done with /usr/src/virtualbox-ose-modules-2.6.22-3-686_1.5.6-dfsg-2+2.6.22-6_i386.deb .
dpkg -i /usr/src/virtualbox-ose-modules-2.6.22-3-686_1.5.6-dfsg-2+2.6.22-6_i386.deb
dpkg - warning: downgrading virtualbox-ose-modules-2.6.22-3-686 from 2.6.22+1.5.2-dfsg2-9 to 1.5.6-dfsg-2+2.6.22-6.
(Reading database ... 147773 files and directories currently installed.)
Preparing to replace virtualbox-ose-modules-2.6.22-3-686 2.6.22+1.5.2-dfsg2-9 (using .../virtualbox-ose-modules-2.6.22-3-686_1.5.6-dfsg-2+2.6.22-6_i386.deb) ...
Unpacking replacement virtualbox-ose-modules-2.6.22-3-686 ...
Setting up virtualbox-ose-modules-2.6.22-3-686 (1.5.6-dfsg-2+2.6.22-6) ...
所以package 中一些只有附source的module,都可以用m-a簡單的作buil and install 。
像 qemu 也是..
m-a 是 module-assistant,安裝
aptitude install module-assistant
有關 kqemu
kqemu 是close source,所以無法提供 compile 好的package直接安裝。
所以debian 採用source code + obj code的方式 。
需要download source code,重新build成 module。
所以用 module-assistant 來作 get - build - install 的動作
--- 實際上只有build module,還是要手動 modprobe 安裝
沒有留言:
張貼留言