debian软件源.docVIP

  • 9
  • 0
  • 约5.82千字
  • 约 4页
  • 2018-03-11 发布于河南
  • 举报
debian软件源

在debian下,用apt方式安装软件除了可以以网络上的资源为源之外,还可以使用本地的资源。下面我就以安装GCC的过程为例,说一下整个过程。 平台:debian 4.0 图形界面 资源:CD一张 debian-40r0-i386-CD-1.iso刻录的 0,增加光盘源 使用命令#apt-cdrom add 系统会提示将你要添加为源的光盘放入光驱 然后enter继续,就自动添加好了 1,查看源列表 debian-dk:~# vim /etc/apt/sources.list deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 CD Binary-111:55]/ etch contrib main 2,安装gcc debian-dk:~# apt-get install gcc 正在读取软件包列表... 完成 正在分析软件包的依赖关系树... 完成 将会安装下列额外的软件包: gcc-4.1 libssp0 建议安装的软件包: manpages-dev autoconf automake1.9 libtool flex bison gcc-doc gcc-4.1-doc gcc-4.1-locales libc6-dev-amd64 lib64gcc1 lib64ssp0 推荐安装的软件包: libc6-dev libc-dev libmudflap0-dev 下列【新】软件包将被安装: gcc gcc-4.1 libssp0 共升级了 0 个软件包,新安装了 3 个软件包,要卸载 0 个软件包,有 0 个软件未被升级 。 需要下载 0B/470kB 的软件包。 解压缩后会消耗掉 1401kB 的额外空间。 您希望继续执行吗?[Y/n]y 选中了曾被取消选择的软件包 libssp0。 (正在读取数据库 ... 系统当前总共安装有 52968 个文件和目录。) 正在解压缩 libssp0 (从 .../libssp0_4.1.1-21_i386.deb) ... 选中了曾被取消选择的软件包 gcc-4.1。 正在解压缩 gcc-4.1 (从 .../gcc-4.1_4.1.1-21_i386.deb) ... 选中了曾被取消选择的软件包 gcc。 正在解压缩 gcc (从 .../gcc_4.1.1-15_i386.deb) ... 正在设置 libssp0 (4.1.1-21) ... 正在设置 gcc-4.1 (4.1.1-21) ... 正在设置 gcc (4.1.1-15) ... 3,查看gcc信息,看是否安装好 debian-dk:~# man gcc No manual entry for gcc See man 7 undocumented for help when manual pages are not available. debian-dk:~# ls debian-dk:~# find -name gcc debian-dk:~# gcc --help Usage: gcc [options] file... Options: -pass-exit-codes Exit with highest error code from a phase --help Display this information --target-help Display target specific command line options (Use -v --help to display command line options of sub-processes) -dumpspecs Display all of the built in spec strings -dumpversion Display the version of the compiler -dumpmachine Display the compilers target processor -print-search-dirs Display the directories in the compilers search path -print-libgcc-file-name Display the name of the compilers companion library -print-file-name=lib Dis

文档评论(0)

1亿VIP精品文档

相关文档