QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 8814|回复: 7

更新源列表(apt)、镜像、通过源安装软件

  [复制链接]
发表于 2006-9-6 17:51:34 | 显示全部楼层 |阅读模式
本帖子主要集中了

1、Magic Linux的更新源列表
2、如何在apt和Smart中使用源
3、为Magic Linux建立源镜像
4、apt常用命令说明
5、如何在Magic Linux中使用Smart

等等

为避免本帖无谓的增长锁定本帖,有问题和意见可以另外开贴询问。
 楼主| 发表于 2006-9-6 17:52:20 | 显示全部楼层
源列表

官方(网通):
http://apt.magiclinux.org
(也可以用http://218.56.161.13/)


maihaohui(广东省佛山市电信):
http://apt.ml.maihaohui.com/stable/


auvtech.com(北京市):
http://auvtech.com/~xinzhen/downloads/apt/
或者URL
http://softswitch.com.cn/~xinzhen/downloads/apt/
公社版主xLoneStar提供

四川省成都信息工程学院-三叶草小组(教育网):
http://cuit.lcuc.org
注:有人反映电信的也比较快,在电信的用户可以试一试。

其他的请大家跟贴说明

推荐使用 smart 进行更新。
另: smart 版本已经升级,请大家更新,同时加入了成都信息工程学院的源。
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=157732
下载地址:
http://www.magiclinux.org/dev/2.0-update/RPMS/smart-0.42-1mgc.i686.rpm
http://www.magiclinux.org/dev/2.0-update/RPMS/smart-gui-0.42-1mgc.i686.rpm
http://www.magiclinux.org/dev/2.0-update/RPMS/smart-update-0.42-1mgc.i686.rpm

其他各个高校的源会陆续搭建起来
Linux Campus Union of China作为公社在高校中的组织者期待各个高校的加入。

ps:现在只有ip而没有域名的源可以发站内信件给我,我们为大家提供域名。
回复

使用道具 举报

 楼主| 发表于 2006-9-6 17:53:15 | 显示全部楼层
如何在apt和Smart中使用源,heyuqi兄提供。



相关源的设置如下( 请复制以下脚本,并粘贴到终端中, 以下操作均需要使用 root 用户执行 ):

1. APT 配置设置:


  1. cat << END > /etc/apt/sources.list.d/magic.list
  2. # Name: aptrpms
  3. # URL: http://auvtech.com/~xinzhen/downloads/apt/
  4. #      http://apt.magiclinux.org
  5. #      http://cuit.lcuc.org

  6. ### MagicLinux
  7. rpm http://auvtech.com/~xinzhen/downloads/apt/ magic-2-0-g12 os updates
  8. rpm http://apt.magiclinux.org/ magiclinux os updates
  9. rpm http://cuit.lcuc.org/ magiclinux os updates
  10. rpm-src http://auvtech.com/~xinzhen/downloads/apt/ magic-2-0-g12 updates
  11. rpm-src http://apt.magiclinux.org/ magiclinux os updates
  12. rpm-src http://cuit.lcuc.org/ magiclinux os updates

  13. ### Gnome2.12 for MagicLinux
  14. rpm http://auvtech.com/~xinzhen/downloads/apt/ magic-2-0-g12 gnome extras
  15. rpm-src http://auvtech.com/~xinzhen/downloads/apt/ magic-2-0-g12 gnome extras

  16. # 注意:由于 KDE 与 GNOME 的版本更新并不同步,以下仓库中的依赖性可能会导致 GNOME 2.12 无法安装。
  17. # 对于使用 GNOME 的用户,建议禁用以下几个仓库。
  18. # rpm http://apt.magiclinux.org/ magiclinux gnome extras
  19. # rpm http://cuit.lcuc.org/ magiclinux gnome extras
  20. # rpm-src http://apt.magiclinux.org/ magiclinux gnome extras
  21. # rpm-src http://cuit.lcuc.org/ magiclinux gnome extras

  22. ### Gnome2.10 for MagicLinux
  23. # rpm http://auvtech.com/~xinzhen/downloads/apt/ magic-2-0 gnome extras
  24. # rpm-src http://auvtech.com/~xinzhen/downloads/apt/ magic-2-0 gnome extras
  25. # rpm http://apt.magiclinux.org/ magic-2-0 gnome extras
  26. # rpm http://cuit.lcuc.org/ magic-2-0 gnome extras
  27. # rpm-src http://apt.magiclinux.org/ magic-2-0 gnome extras
  28. # rpm-src http://cuit.lcuc.org/ magic-2-0 gnome extras


  29. END
复制代码


或者下载我上传的配置文件 magic.list  ( 因为上传限制改名为 magic.list.txt ) 放到 /etc/apt/sources.list.d/ 目录中


2. SmartPackageManager(智能包管理器) 的设置:


  1. cat << END > rebuild-smart-channels.sh
  2. #!/bin/bash
  3. # Usage : This script will rebuild the channels of the smart package manager.

  4. smart channel --remove-all -y

  5. smart channel --add [email][email protected][/email] type=apt-rpm \
  6.         name="Magic Linux 2.0 APT Os Repository" \
  7.         baseurl=http://apt.magiclinux.org/magiclinux \
  8.         components=os -y
  9. smart channel --add [email][email protected][/email] type=apt-rpm \
  10.         name="Magic Linux 2.0 APT Os Repository" \
  11.         baseurl=http://cuit.lcuc.org/magiclinux \
  12.         components=os -y
  13. smart channel --add [email][email protected][/email] type=apt-rpm \
  14.         name="Magic Linux 2.0 APT Os Repository" \
  15.         baseurl=http://auvtech.com/~xinzhen/downloads/apt/magic-2-0-g12 \
  16.         components=os -y

  17. smart channel --add [email][email protected][/email] type=apt-rpm \
  18.         name="Magic Linux 2.0 APT Updates Repository" \
  19.         baseurl=http://apt.magiclinux.org/magiclinux \
  20.         components=updates -y
  21. smart channel --add [email][email protected][/email] type=apt-rpm \
  22.         name="Magic Linux 2.0 APT Updates Repository" \
  23.         baseurl=http://cuit.lcuc.org/magiclinux \
  24.         components=updates -y
  25. smart channel --add [email][email protected][/email] type=apt-rpm \
  26.         name="Magic Linux 2.0 APT Updates Repository" \
  27.         baseurl=http://auvtech.com/~xinzhen/downloads/apt/magic-2-0-g12 \
  28.         components=updates -y

  29. smart channel --add [email][email protected][/email] type=apt-rpm \
  30.         name="Magic Linux 2.0 APT Gnome Repository" \
  31.         baseurl=http://apt.magiclinux.org/magiclinux \
  32.         components=gnome -y
  33. smart channel --add [email][email protected][/email] type=apt-rpm \
  34.         name="Magic Linux 2.0 APT Gnome Repository" \
  35.         baseurl=http://cuit.lcuc.org/magiclinux \
  36.         components=gnome -y
  37. smart channel --add [email][email protected][/email] type=apt-rpm \
  38.         name="Magic Linux 2.0 APT Gnome Repository" \
  39.         baseurl=http://auvtech.com/~xinzhen/downloads/apt/magic-2-0-g12 \
  40.         components=gnome -y

  41. smart channel --add [email][email protected][/email] type=apt-rpm \
  42.         name="Magic Linux 2.0 APT Extras Repository" \
  43.         baseurl=http://apt.magiclinux.org/magiclinux \
  44.         components=extras -y
  45. smart channel --add [email][email protected][/email] type=apt-rpm \
  46.         name="Magic Linux 2.0 APT Extras Repository" \
  47.         baseurl=http://cuit.lcuc.org/magiclinux \
  48.         components=extras -y
  49. smart channel --add [email][email protected][/email] type=apt-rpm \
  50.         name="Magic Linux 2.0 APT Extras Repository" \
  51.         baseurl=http://auvtech.com/~xinzhen/downloads/apt/magic-2-0-g12 \
  52.         components=extras -y
  53.        
  54. smart channel --disable [email][email protected][/email]
  55. smart channel --disable [email][email protected][/email]
  56. smart channel --disable [email][email protected][/email]
  57. smart channel --disable [email][email protected][/email]

  58. smart update

  59. END
复制代码


或者下载我上传的脚本:rebuild-smart-channels.sh

最后执行脚本,更新 Smart 源。

  1. sh rebuild-smart-channels.sh
复制代码
回复

使用道具 举报

 楼主| 发表于 2006-9-6 17:53:51 | 显示全部楼层
电信用户请看这里
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=152624
回复

使用道具 举报

 楼主| 发表于 2006-9-6 17:57:59 | 显示全部楼层

使用rysnc建立Magic Linux源镜像

使用rysnc建立Magic Linux源镜像

rysnc的主页地址为:
http://rsync.samba.org/


下载最新版的rsyns

编译安装
rsync的编译安装非常简单,只需要以下简单的几步:

  1. [root@magiclinux rsync-2.4.6]# ./configure
  2. [root@magiclinux rsync-2.4.6]# make
  3. [root@magiclinux rsync-2.4.6]# make install
复制代码


一、列出MagicLinux官方apt服务器上面的所有可以访问的模块

  1. rsync apt.magiclinux.org::
复制代码


此命令则将会列出apt.magiclinux.org可以访问的所有模块信息。

二、开始建立apt的镜像
使用以下命令

  1. rsync -vzrtopg --delete --progress apt.magiclinux.org::magic /www/apt/
复制代码


此命令把apt.magiclinux.org的文件同步到你服务器的/www/apt/目录。



windows平台的用户可以使用cwRsync达到镜像的目的。
下载地址:
http://www.itefix.no/cwrsync/
回复

使用道具 举报

 楼主| 发表于 2006-9-6 17:59:02 | 显示全部楼层

通过ftp建立Magic Linux源镜像(不建议使用)

通过ftp建立Magic Linux源镜像(不建议使用)


此仅为方便windows平台用户
首先联系我们取得ftp的内部帐号
然后使用flashfxp等ftp客户端软件进行同步

注意:用ftp同步时无须同步magiclinux目录,他是一个符号链接(快捷方式),指向magic-2-0目录,你可以建立magiclinux目录的符号链接(快捷方式)并指向magic-2-0目录。
回复

使用道具 举报

 楼主| 发表于 2007-1-6 23:28:55 | 显示全部楼层

apt常用命令说明

apt常用命令说明


apt-cache search package 搜索包
apt-cache show package 获取包的相关信息,如说明、大小、版本等
apt-get install package 安装包
apt-get install package - - reinstall 重新安装包
apt-get -f install 强制安装
apt-get remove package 删除包
apt-get remove package - - purge 删除包,包括删除配置文件等
apt-get update 更新源
apt-get upgrade 更新已安装的包
apt-get dist-upgrade 升级系统
apt-get dselect-upgrade 使用 dselect 升级
apt-cache depends package 了解使用依赖
apt-cache rdepends package 了解某个具体的依赖
apt-get build-dep package 安装相关的编译环境
apt-get source package 下载该包的源代码
apt-get clean && apt-get autoclean 清理下载文件的存档
apt-get check 检查是否有损坏的依赖

一般使用步骤
1,apt-get update
2,apt-get install package
回复

使用道具 举报

 楼主| 发表于 2007-1-6 23:34:12 | 显示全部楼层

在Magic Linux中使用smart

在Magic Linux中使用smart


    1. 如何打开图形界面。

            * 方法一:打开菜单 “系统” -> “智能包管理器(Smart Package Manager)”
            * 方法二:在 KDE 或 GNOME 终端程序中输入命令“ smart --gui ”

    2. 如何设置源。( 这里我们只讲述 APT-RPM 源的设置方法,对于其它格式,请查阅 Smart Package Manager 的主页 )

            * 打开 Smart 菜单,选择 “编辑” -> “源”。
            * 先把选择 类型 为 “apt-rpm” 的源,然后点击下方的 删除 键删除之。重复此步骤,删除所有 “apt-rpm” 源为止。
            * 在“源”的对话框中,选择 “新建”;然后再选择 “提供源信息”。
            * 选择新源的类型为 APT-GET 仓库
            * 在 “编辑源” 的对话框中,添加源的信息。相关信息请查看 Magic Linux 数据源列表。
            * 以上四步都完成以后,你可以在 “源” 对话框中看到你新添加的数据源了。

    3. 软件包的更新。

            * 首先,打开 Smart 菜单,选择 “文件” -> “更新源” 或 “更新选定的源”。
            * 然后选择菜单 “编辑” -> “升级全部”

    4. 软件包的安装。

            * 在安装一个软件包以前,您需要知道它的相关信息。比如,您想安装一个叫 mplayer 的播放软件,您需要知道它叫 mplayer,当然没有必要是一个完整信息,只要一部分就可以了。如果不清楚,您则需要在 论坛 中发贴询问,或使用 google 搜索之。
            * 然后,打开 Smart 菜单,选择 “文件” -> “更新源” 或 “更新选定的源”。
            * 接着,选择菜单“编辑”->“查找”,或使用快捷键“Ctrl + F”
            * 在“搜索”文字输入框中输入你需要的软件信息,按 Enter 确定。
            * 此时,如果程序搜索到符合条件的软件包,就会在“搜索”输入框的下面列出相关信息。如果有您要的软件,右键选择“安装”即可。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-5-18 09:20 , Processed in 0.101378 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表