【解决】ARCHLINUX-请给我一份pacman conf

其他Linux/Unix/BSD/OSX等发行版讨论
回复
头像
wowoto
帖子: 3050
注册时间: 2009-04-11 12:17
系统: windows7

【解决】ARCHLINUX-请给我一份pacman conf

#1

帖子 wowoto » 2009-10-24 3:03

我在安装之后的配置中,由于什么都不懂,把pacman,conf的很多东西修改了,现在没法从网络更新。。麻烦在用arch的同学给一份给我,谢谢。
上次由 wowoto 在 2009-11-14 20:16,总共编辑 2 次。
wowoto>ubuntu8.04>ubuntu9.04>Archlinux>FreeBSD8.0>Archlinux & end here.
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

Re: ARCHLINUX-帮忙给我一份pacman conf,我的弄乱了~~不知如何改回去~arch新手

#2

帖子 zhuqin_83 » 2009-10-24 3:26

sudo rm /etc/pacman.conf
sudo pacman -S pacman
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
白鳍豚
帖子: 2356
注册时间: 2009-01-19 23:03

Re: ARCHLINUX-帮忙给我一份pacman conf,我的弄乱了~~不知如何改回去~arch新手

#3

帖子 白鳍豚 » 2009-10-24 10:41

/etc/pacman.conf

代码: 全选

#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
HoldPkg     = pacman glibc
# If upgrades are available for these packages they will be asked for first
SyncFirst   = pacman
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#XferCommand = /usr/bin/curl %u > %o
#CleanMethod = KeepInstalled

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options (all disabled by default)
#UseSyslog
#ShowSize
#UseDelta
#TotalDownload

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

#[testing]
## Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/mirrorlist

[core]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

[extra]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

#[community-testing]
## Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/mirrorlist

[community]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#Server = file:///home/custompkgs

[xyne-any]
Server = http://xyne.archlinux.ca/repos/any/
[archlinuxfr]
Server = http://repo.archlinux.fr/i686
头像
白鳍豚
帖子: 2356
注册时间: 2009-01-19 23:03

Re: ARCHLINUX-帮忙给我一份pacman conf,我的弄乱了~~不知如何改回去~arch新手

#4

帖子 白鳍豚 » 2009-10-24 10:43

#[custom]
#Server = file:///home/custompkgs
这地方就是本地的
头像
tenzu
论坛版主
帖子: 36924
注册时间: 2008-11-21 20:26

Re: ARCHLINUX-帮忙给我一份pacman conf,我的弄乱了~~不知如何改回去~arch新手

#5

帖子 tenzu » 2009-10-24 10:55

powerpill和yaourt都有了。。。
头像
wowoto
帖子: 3050
注册时间: 2009-04-11 12:17
系统: windows7

Re: ARCHLINUX-帮忙给我一份pacman conf,我的弄乱了~~不知如何改回去~arch新手

#6

帖子 wowoto » 2009-10-24 11:57

白鳍豚 写了:#[custom]
#Server = file:///home/custompkgs
这地方就是本地的

谢谢,也同时谢谢你前几天的帮助~~ :em01
wowoto>ubuntu8.04>ubuntu9.04>Archlinux>FreeBSD8.0>Archlinux & end here.
头像
wowoto
帖子: 3050
注册时间: 2009-04-11 12:17
系统: windows7

Re: ARCHLINUX-帮忙给我一份pacman conf,我的弄乱了~~不知如何改回去~arch新手

#7

帖子 wowoto » 2009-10-24 11:57

tenzu 写了:powerpill和yaourt都有了。。。
感谢tenzu~~按照你的关键字搜到了~~
wowoto>ubuntu8.04>ubuntu9.04>Archlinux>FreeBSD8.0>Archlinux & end here.
回复