[root@Matrix apt]# apt-config -o ACQIURE::http=192.131.0.1:8080
apt 0.5.5cnc6 for linux i386 compiled on Jun 16 2003 18:46:01
Usage: apt-config [options] command
apt-config is a simple tool to read the APT config file[root@Matrix apt]# apt-config -o ACQIURE::http=192.131.0.1:8080
apt 0.5.5cnc6 for linux i386 compiled on Jun 16 2003 18:46:01
Usage: apt-config [options] command
apt-config is a simple tool to read the APT config file
Commands:
shell - Shell mode
dump - Show the configuration
Options:
-h This help text.
-c=? Read this configuration file
-o=? Set an arbitary configuration option, eg -o dir::cache=/tmp
ΪʲôÊÇÕâÑù,Äܲ»ÄܾٸöÀý×ÓÑÇ,ллÁË.
Commands:
shell - Shell mode
dump - Show the configuration
Options:
-h This help text.
-c=? Read this configuration file
-o=? Set an arbitary configuration option, eg -o dir::cache=/tmp ÔõôûÓÐÈ˻ظ´ÑÇ,ÎÒÏëÎÊ×°aptÊDz»ÊÇ»¹ÒªÆðftp·þÎñÄØ apt-config -o ACQIURE::Http::Proxy=192.131.0.1:8080 dump
aptºÍ±¾»úµÄ·þÎñûÓйØÏµ£¬²»ÐèÒª×Ô¼ºÉèÖÃftp·þÎñÆ÷£¬³ý·ÇÄãÏë×Ô¼º½¨Á¢Ò»¸öapt 4 rpm·þÎñÕ¾µã¡£ ллÄã!²»¹ýÎÒ»¹ÊÇúÓͰ취¸üÐÂ,ÀÏÊÇ˵ÎÞ·¨Áª½Ó. ÈçºÎ°²×°±¾µØÓ²ÅÌÉϵÄrpm°ü£¿£¿£¿
file:/home/jerry/soft/ 9.0²»ÐУ¡ ÎҵĴúÀí¶¼ÊÇÉèÖÃÔÚ/etc/apt/apt.confÎļþÖеģº
È磺
Http {
Proxy "http://Óû§Ãû:ÃÜÂë@´úÀíIPµØÖ·:8080";
}
manux£¬Äܲ»ÄÜÌù³öÀ´ÄãµÄ/etc/apt/sources.listÎļþ¡£
ÎÒÕâºÃ¶àÈí¼þ¶¼ÕÒ²»µ½¡£ ÎÒûÓÐʹÓôúÀí£¬Õâ¸öÎļþҲû×ö¹ýÐÞ¸Ä
// $Id: apt.conf,v 1.10 2003/06/16 10:22:32 dude Exp $
// See the apt.conf(5) man page for syntax and all available options
APT {
Clean-Installed "false";
Get {
Assume-Yes "false";
Download-Only "false";
Show-Upgraded "true";
Fix-Broken "false";
Ignore-Missing "false";
Compile "false";
};
};
Acquire {
Retries "0";
Http {
Proxy ""; // [url]http://user:pass@host:port/[/url]
}
};
RPM {
Ignore { };
Hold { };
Allow-Duplicated { "^kernel$"; "^kernel-"; "^gpg-pubkey$" };
Options { };
Install-Options "";
Erase-Options "";
Source {
Build-Command "rpmbuild --rebuild";
};
}; °¡£¬×òÌì×ßµÄʱºò´Ò棬˵´íÁË¡£
ÎÒ²»ÐèÒªÕâ¸öÎļþ£¬ÏëÒªµÄÊÇ£º
/etc/apt/sources.list
ÎÒÉý¼¶µÄʱºòºÃ¶àÈí¼þ¶¼ÕÒ²»µ¹¡£ # List of available apt repositories available from ayo.freshrpms.net.
# This file should contain an uncommented default suitable for your system.
# See [url]http://ayo.freshrpms.net/[/url] for a list of other repositories and mirrors.
# $Id: sources.list,v 1.8 2003/04/16 09:59:58 dude Exp $
# Red Hat Linux 9
# rpm [url]ftp://localhost/apt/[/url] redhat/9.0/en/i386 os updates test
redhat/9/en/i386 os updates test
rpm [url]http://ayo.freshrpms.net/[/url] redhat/9/i386 os updates freshrpms
rpm-src [url]http://ayo.freshrpms.net/[/url] redhat/9/i386 os updates freshrpms
rpm [url]http://people.redhat.com[/url] arjanv/2.5 kernel
rpm-src [url]http://people.redhat.com[/url] arjanv/2.5 kernel
# Red Hat Linux 8.0
# rpm [url]http://ayo.freshrpms.net/[/url] redhat/8.0/i386 os updates freshrpms
# rpm-src [url]http://ayo.freshrpms.net/[/url] redhat/8.0/i386 os updates freshrpms
ÔÚgoogleËÑË÷apt-rpm redhat¿ÉÄÜ»áÓкܶà½á¹û,ÕâÀïÓÐÒ»¸öСÁÐ±í£º
[url]http://www.linuxwiki.de/apt/RedHat[/url] Ö»ÓÐÄǸökernelµÄÎÒûÓмÓÉÏ¡£
:)
THANKS ÔÙ¼Ó¼¸¸öapt£rpmÔ´£¨À´×Ôlinuxfans£©£º
[url]http://freshrpms.net/[/url] »òÕßÖ±½Óµ½ÕâÀïÏÂÔØ£º [url]http://ayo.freshrpms.net/redhat/[/url]
[url]http://atrpms.physik.fu-berlin.de/[/url] »òÕßÖ±½Óµ½ÕâÀïÏÂÔØ£º [url]http://apt.physik.fu-berlin.de/redhat/[/url]
[url]http://dag.wieers.com/[/url] »òÕßÖ±½Óµ½ÕâÀïÏÂÔØ£º [url]http://apt.sw.be/redhat/[/url]
[url]http://www.fedora.us/[/url] »òÕßÖ±½Óµ½ÕâÀïÏÂÔØ£º [url]http://download.fedora.us/fedora/redhat/[/url]
[url]http://newrpms.sunsite.dk/[/url] »òÕßÖ±½Óµ½ÕâÀïÏÂÔØ£º [url]http://newrpms.sunsite.dk/apt/redhat/[/url]
¶¼¿ÉÓÃapt¸üÐÂ
Èç¹ûÄãÓÃaptµÄ»°£¬ÔÚ/etc/apt/sources.list¼ÓÈë
# [url]http://atrpms.physik.fu-berlin.de/[/url]
rpm [url]http://apt.physik.fu-berlin.de/[/url] redhat/9/en/i386 at-stable at-good at-testing at-bleeding
rpm-src [url]http://apt.physik.fu-berlin.de/[/url] redhat/9/en/i386 at-stable at-good at-testing at-bleeding
# [url]http://dag.wieers.com/[/url]
rpm [url]http://apt.sw.be/[/url] redhat/9/en/i386 dag
rpm-src [url]http://apt.sw.be/[/url] redhat/9/en/i386 dag
# [url]http://www.fedora.us/[/url]
rpm [url]http://download.fedora.us/fedora/[/url] redhat/9/i386 os updates stable unstable testing
rpm-src [url]http://download.fedora.us/fedora/[/url] redhat/9/i386 os updates stable unstable testing
# [url]http://newrpms.sunsite.dk/[/url]
rpm [url]http://newrpms.sunsite.dk/apt/[/url] redhat/en/i386/9.0 newrpms
rpm-src [url]http://newrpms.sunsite.dk/apt/[/url] redhat/en/i386/9.0 newrpms ÉÏÃæµÄÎÒÒ²ÓУ¬ºóÀ´·¢ÏÖÆäʵÕâÑù²¢²»ÊǺܺá£
ÓÐÒ»´Î×°ÁËijһ¸öÕ¾µÄxxx.rpm°ü£¬ÔÙºóÀ´Éý¼¶Èí¼þµÄʱºò·¢ÏÖÐèÒªÕâ¸ö°üµÄdevel°ü£¬È»¶øÏÂÔØµÄdevel°üÈ·Ï໥³åÍ»£¬Ö»ºÃɾ³ýÔÙȫװfreshrpmsµÄ°ü£¬»¹ÊÇÕâÑù±£ÏÕ£¬ÒÔºóÖ»ÁôÕâÒ»¸öÕ¾¾ÍºÃ£¬Ê¡ÐÄ£¬ÒÀÀµÐÔÎÊÌâÌ«·³ÁË¡£ apt·½±ãÁ˲»Ô¸×Ô¼º¸ú×ÙÈí¼þ¸üкͱàÒëÈí¼þµÄÓû§£¨Ò»°ãÓû§Ò²Íêȫû±ØÒª¸ú×Ù¸÷¸öÈí¼þµÄ×îнøÕ¹£©£¬Ê¹ÓÃaptµ±È»Ò²ÓÐÒÀÀµÐÔµÄÎÊÌ⣬²»Í¬À´Ô´µÄrpm»áÓÐÈí¼þ°üÖØ¸´£¬ËùÒÔÏ໥ÒÀÀµ¹ØÏµÒ²»á²»Í¬¡£
aptÒ²·ÖºÜ¶àϵÁеģ¬freshrpmsµÄÈí¼þ°ü¹ý·Ö²àÖØ¶àýÌåÓ¦Ó㬺ܶàÓмÛÖµµÄÆäËüÈí¼þ°üûÓаüº¬½øÈ¥£¬ËùÒÔ²¢²»ÄÜÂú×ãËùÓÐÈ˵ÄÒªÇó£¨freshrpmsµÄÈí¼þÀïÃæ¶ÔÎÒÀ´Ëµ×îÖØÒªµÄ¾ÍÊÇalsaÁË£¬ÎÒ×Ô¼º×÷²»³ö±ÈËüºÃµÄrpm£©£¬fedoraÊÇÁíÒ»¸öÓ°Ïì±È½Ï´óµÄϵÁС£²àÖØµãºÍfreshrpmsÉÔÓв»Í¬¡£
ÎÒÖ»ÓÃapt¸üÐÂһЩ±È½ÏͨÓõÄÈí¼þºÍredhatµÄ°²È«¸üУ¬ºÜ¶àÈí¼þ»¹ÊÇÒª×Ô¼º±àÒë²Å»áÍêÈ«Âú×ã×Ô¼ºµÄÒªÇó£¬ËùÒÔÎÒµÄsourceÀïÃæÓÐ×Ô¼ºµÄ»úÆ÷¡£
°¢²¨ÂÞÓÐûÓÐÐËȤһ¿é¶ù×öÒ»¸öaptÍøÕ¾£¬ÎÒ¾õµÃÌṩһЩÖÐÎÄ»¯ºÍÖйúÓû§¹ØÐĵÄÈí¼þµÄaptÕ¾µã»¹ÊǺÜÓбØÒªµÄ¡£ [QUOTE][i]×î³õÓÉ manux ·¢²¼[/i]
[B]
°¢²¨ÂÞÓÐûÓÐÐËȤһ¿é¶ù×öÒ»¸öaptÍøÕ¾£¬ÎÒ¾õµÃÌṩһЩÖÐÎÄ»¯ºÍÖйúÓû§¹ØÐĵÄÈí¼þµÄaptÕ¾µã»¹ÊǺÜÓбØÒªµÄ¡£ [/B][/QUOTE]
ÓÉÕâ¸öÐËȤ£¬²»¹ýÄÜÁ¦µÃÂýÂýÌá¸ßŶ¡£
ÏÖÔÚÎÒ´óÔ¼»¹ÊôÓÚ°ë¸ö²ËÄñ¼¶µÄÈËÎï¡£
´Óeden¶àÍϼ¸¸öÀÏÄñ£¬±ÈÈçAIKO¡°ÀÏÈ˼ҡ±
:D