/etc/pacman.conf question..

This may have been asked before, but I could not find it...
<yes, I did use the search on the forums...  >
I was wondering if the NoUpgrade option in pacman.conf uses shell-like wildcard expansion...
Does the following work?
NoUpgrade = etc/host*
shell expansion should expand this to
/etc/host.conf
/etc/hosts
/etc/hosts.allow
/ec/hosts.deny
will pacman do the same?

No, but it would be nice to have something like that (or perhaps better with regexp)
BTW, regexp support for targets was already in pacman wishlist.
I've added noupgrade/ignorepkg options to it.
To be continued...

Similar Messages

  • [Solved]Add kernel26 to IgnorePkg in /etc/pacman.conf. Not ignored.

    Using kdemod4.3(32bit).  I re-installed kernel26-2.6.30.5-1-i686(earliest in pacman  pkg cache) and added kernel26 and kernel-headers to /etc/pacman.conf IgnorePkg but # "pacman -Syu" still asks to upgrade kernel to 2.30.6-1-i686. What do I add to that IgnorePkg to avoid kernel upgrade? Tried kernel, kernel26 and kernel26*. Adding nvidia,nvidia-utils and xorg-server to Ignorepkg give me that thee aren't upgraded(desirred result). Thanx.
    Last edited by lestoil (2009-10-08 18:08:14)

    # /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   = nvidia nvidia-utils xorg-server 
    #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.
    # Testing is disabled by default.  To enable, uncomment the following
    # two lines.  You can add preferred servers immediately after the header,
    # and they will be used before the default mirrors.
    #[testing]
    #Include = /etc/pacman.d/mirrorlist
    #KDEmod4
    [kdemod-core]
    Server = http://mirror.rit.edu/kdemod/core/i686
    #KDEmod4
    [kdemod-extragear]
    Server = http://mirror.rit.edu/kdemod/extragear/i686
    [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]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    #Yaourt
    [archlinuxfr]
    Server = http://repo.archlinux.fr/i686
    # An example of a custom package repository.  See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #Server = file:///home/custompkgs
      Here is complete /etc/pacman.conf. file without the "kernel" or "kernel26" entry which doesn't work.

  • Hi accidentally overwrote new pacman.conf with /etc/pacman.conf.pacnew

    Hi
    I accidentally overwrote etc/pacman.conf with the old /etc/pacman.conf.pacnew.
    Pacman now appears to work but disregards the signing of packages.
    Is there an copy of the pacman.conf from the upgrade around so I can merge
    the two files. perhaps pacman.conf~, but no I think this is overwritten too.
    Regardz
    El Zorro

    Hi Trilby,
                  it may be the mouldy oldy one as there is no reference to "SigLevel = Never"  it does not seem to exist only "Architecture = auto"
    Here is the current /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 -C - -f %u > %o
    #CleanMethod = KeepInstalled
    Architecture = auto
    # 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
    #CheckSpace
    # 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
    # - URLs will have $arch replaced by the name of the architecture
    # 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]
    #Include = /etc/pacman.d/mirrorlist
    [core]
    Include = /etc/pacman.d/mirrorlist
    [extra]
    Include = /etc/pacman.d/mirrorlist
    #[community-testing]
    #Include = /etc/pacman.d/mirrorlist
    [community]
    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
    Trilby wrote:
    The pacnew version includes everything for package signing.  All you will have lost is any personal changes you have made.
    The package signing lines are, however, commented out except for the "SigLevel = Never" line.  Just read the instructions within the comments and uncomment the appropriate SigLevel line (and comment the "Never" line).
    Last edited by elzorro (2012-01-21 06:31:50)

  • Warning: config file /etc/pacman.conf, line 19: directive 'SyncFirst'

    what is the new syntax for 'SyncFirst' in pacman 4.1?
    greetings

    Allan wrote:Merge your pacman files...
    it's  the first i make when update package (merge changes in /etc/makepkg and /etc/pacman.conf)
    but need keep SyncFirst
    # If upgrades are available for these packages they will be asked for first
    SyncFirst  = linux-headers linux-lts-headers
    need this to update kernel headers before update kernel, because i use mkinitcpio to update DKMS modules [1]
    if upgrade kernel before install headers, the build dkms modules fail
    [1] https://aur.archlinux.org/packages/mkinitcpio-dkms/
    related:
    https://wiki.archlinux.org/index.php/NV … any_kernel
    https://wiki.archlinux.org/index.php/Vi … any_kernel
    Last edited by sl1pkn07 (2013-04-18 12:11:34)

  • Pacman not reading /etc/pacman.conf???

    All right, I'm sorta new to linux and VERY new to Arch. Love what I see so far, but I've got a little problem.
    I've uncommented out and added some repositories in /etc/pacman.conf, but when I run pacman -Syu it only sync's up with the core and extra's database. I have uncommented out testing, and added the kdemod repos... What am I doing wrong???
    pacman -Syu
    ::Synchronizing package databases...
    core is up to date
    extra is up to date
    local database is up to date
    Argh!

    Yep, should've done that. Sorry!
    # /etc/pacman.conf
    # See the pacman manpage for option directives
    # GENERAL OPTIONS
    [options]
    LogFile     = /var/log/pacman.log
    HoldPkg     = pacman glibc
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    # 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
    #[testing]
    #Include = /etc/pacman.d/testing
    [core]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/core
    [extra]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/extra
    #[community]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/community
    #[unstable]
    # Add your preferred servers here, they will be used first
    #Include = /etc/pacman.d/unstable
    # An example of a custom package repository.  See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #Server = file:///home/custompkgs
    #[kdemod]
    Server = http://kdemod.ath.cx/repo/current/x86_64

  • A perfect /etc/pacman.conf ??

    Hello guys,
    can someone please post a good working /etc/pacman.conf with uptodate servers ??
    I somehow broke mine...:/:/
    Thanks in advance and regards from Berlin
    Chris

    Here's mine with testing,community and unstable uncommented.
    # /etc/pacman.conf
    # NOTE: If you find a mirror that is geographically close to you, please
    # move it to the top of the server list, so pacman will choose it
    # first.
    # To re-sort your mirror lists by ping/traceroute results, use the
    # /usr/bin/sortmirrors script. It requires the "netselect" package.
    # See the pacman manpage for option directives
    # GENERAL OPTIONS
    [options]
    LogFile = /var/log/pacman.log
    NoUpgrade = etc/passwd etc/group etc/shadow etc/sudoers
    NoUpgrade = etc/fstab etc/raidtab etc/ld.so.conf
    NoUpgrade = etc/rc.conf etc/rc.local
    NoUpgrade = etc/modprobe.conf etc/modules.conf
    NoUpgrade = etc/lilo.conf boot/grub/menu.lst
    HoldPkg = pacman glibc
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    # 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
    [testing]
    Server = ftp://ftp.archlinux.org/testing/os/i686
    [current]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/current
    [extra]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/extra
    [unstable]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/unstable
    [community]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/community
    # An example of a custom package repository. See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #Server = file:///home/custompkgs

  • Yaourt (0.9.4-2) (aur) ignores IgnorePkg rules in /etc/pacman.conf

    Usually doing yaourt -Syu --aur goes through and updates all of the packages I installed from aur unless the package is among those listed in the IgnorePkg array in pacman.conf.  However, the recently updated yaourt from aur simply ignores the rule and prompts me to upgrade the package anyways.  For example, I see this for bin32-wine.

    opened a bug report:
    http://bugs.archlinux.fr/task/170

  • Pacman.conf.pacsave etc?

    I recently upgraded my system to the newer packages and I noticed some messages when I did this. The pacman.conf.save as well as rc.local.pacsave and a few others were listed as being created. What wasn't clear was what I am supposed to do with these multiple files.
    I noticed that the pacman.conf file was actually different than my original as the IGNOREPKG line was commented whereas I had mine commented out.
    So, can this be clarified? Perhaps even a list of the files that typically get replaced and what users are supposed to do with them.
    Thanks in advance.

    Anything with a .pacsave extension is a configuration file that has been backed up. Your previous pacman.conf file was moved to /etc/pacman.conf.pacsave and the new file from the new package was placed in as /etc/pacman.conf.
    To prevent that from happening, add etc/pacman.conf to one of the NoUpgrade lines in pacman.conf. Then the next time pacman is upgraded, your original config will be preserved and the new file will be saved as /etc/pacman.conf.pacnew.

  • Pacman/Pacman.conf Scripts

    I've been working on these two pieces for a while. For the most part, they're complete to my standards, but obviously they can always looked to be improved upon. I use the first one daily with no real problems (though I could add a little more error handling) and the other one does work for me though I don't need to call upon it too much.
    My goal was really to provide an interface for pacman which was fast but still easy to use. I also realized that I can't write any GUI code, nor do I feel like it's nessisary to make something simple. It really only requires bash, a few coreutils, and pacman to be used, so if you're on a lower-end system and don't want to call upon a large GUI front end, this may be something good for you to try out.
    Any feedback is appreciated too
    Pacman Manager Script
    #!/bin/bash
    #Pacman Manager
    #Author: Doug Swain ([email protected])
    ###Defining Operations###
    function install {
    echo "Installing package now"
    echo
    sudo pacman -S $PACKAGE
    echo
    echo "The package ($PACKAGE) is now installed"
    echo "Press enter to contiue"
    read
    function uninstall {
    echo "Uninstalling package now"
    echo
    sudo pacman -R $PACKAGE
    echo
    echo "The package ($PACKAGE) has been removed."
    echo "Press enter to contiue"
    read
    function sync {
    echo "Syncing with servers"
    echo
    sudo pacman -Sy
    echo
    echo "Sync complete. Press enter to continue"
    read
    function update {
    echo " Updating your system now"
    echo
    sudo pacman -Syu --noconfirm
    sudo pacman -Scc
    echo
    echo "Your system has been updated"
    echo "Press enter to contiue"
    read
    function search {
    clear
    echo "What package would you like to search?"
    read PACKAGE
    sudo pacman -Ss $PACKAGE
    echo "Would you like to search again?"
    echo "[Y]es"
    echo "[N]o"
    read CHOICE
    if [[ "$CHOICE" = [Yy] ]]; then
    search
    elif [[ "$CHOICE" = [Nn] ]]; then
    echo "Search Finished. Press Enter to Continue"
    read
    fi
    function manage {
    clear
    if [ "$UID" != 0 ]; then
    echo "Error! Not running as the root user right now. Become a super user and try again"
    exit 1
    fi
    clear
    echo " Welcome to the Pacman Manager"
    echo
    echo " What would you like to do?"
    echo
    ###ENDDEFINE###
    ###MANAGER###
    manage
    OPTIONS="Install Uninstall Sync Update Search Exit"
    select opt in $OPTIONS; do
    if [ "$opt" = "Install" ]; then
    clear
    echo "What package would you like to install?"
    read PACKAGE
    install
    manage
    elif [ "$opt" = "Uninstall" ]; then
    clear
    echo "What package would you like to uninstall?"
    read PACKAGE
    uninstall
    manage
    elif [ "$opt" = "Sync" ]; then
    clear
    sync
    manage
    elif [ "$opt" = "Update" ]; then
    clear
    update
    manage
    elif [ "$opt" = "Search" ]; then
    clear
    search
    manage
    elif [ "$opt" = "Exit" ]; then
    clear
    exit
    fi
    done
    ###ENDMANAGER###
    pacman.conf Script
    #!/bin/bash
    #Pacman Configurator
    #Tool to configure and modify pacman and /etc/pacman.conf
    #Pretty Stable from my tests, but use with caution
    #Backup your /etc/pacman.conf file just in case.
    #Author: Doug Swain ([email protected])
    ###DEFINE FUNCTIONS####
    function srv_ctl {
    clear
    echo "Server Control"
    echo "Selections:"
    echo "[A]dd URL"
    echo "[R]emove URL"
    echo "[E]nable Resporitories"
    echo "[D]isable Resporitories"
    echo "[b]ack"
    read CHOICE
    if [ "$CHOICE" = "A" ]; then
    cat /etc/pacman.conf | grep "srv_ctl"
    if [ "$?" != "0" ]; then
    echo "[srv_ctl]" >> /etc/pacman.conf
    echo "Include = /etc/pacman.d/custom" >> /etc/pacman.conf
    fi
    clear
    echo "Enter URL"
    read URL
    echo "Adding"
    echo $URL >> /etc/pacman.d/custom
    cat /etc/pacman.d/custom | grep $URL
    echo "The server above has been added."
    elif [ "$CHOICE" = "R" ]; then
    clear
    echo "Current Custom Server List:"
    cat /etc/pacman.d/custom
    echo "Enter URL"
    read URL
    echo "Removing"
    URLTEST=$(cat /etc/pacman.d/custom | grep $URL)
    if [ "$URL" = "$URLTEST" ]; then
    cat /etc/pacman.d/custom | grep -v $URL >> /etc/pacman.d/custom1
    mv /etc/pacman.d/custom1 /etc/pacman.d/custom
    echo "Address removed. Press enter to continue."
    read
    srv_ctl
    elif [ "$URL" != "$URLTEST" ]; then
    echo "Error! Address not found. Press Enter to continue"
    read
    srv_ctl
    fi
    elif [ "$CHOICE" = "E" ]; then
    clear
    echo "Current Resporitiories available"
    ls /etc/pacman.d/
    echo "Enter Resporitory (example: current/custom/extra)"
    read RES
    echo "[$RES]" >> /etc/pacman.conf
    echo "Include = /etc/pacman.d/$RES" >> /etc/pacman.conf
    echo "Enabled. Press Enter to contiue"
    read
    srv_ctl
    elif [ "$CHOICE" = "D" ]; then
    clear
    echo "Current Resporitiories available"
    ls /etc/pacman.d/
    echo "Enter Resporitory (example: current/custom/extra)"
    read RES
    cat /etc/pacman.conf | grep -v "$RES" >> /etc/pacman1.conf
    mv /etc/pacman1.conf /etc/pacman.conf
    echo "Disabled. Press Enter to continue."
    read
    srv_ctl
    elif [ "$CHOICE" = "B" ]; then
    echo "Press enter to continue"
    read
    manage
    fi
    function pkg_ctl {
    clear
    echo "What would you like to do?"
    echo "[A]dd Package to Ignore List"
    echo "[R]emove Package from Ignore List"
    echo "[b]ack"
    read CHOICE
    if [ "$CHOICE" = "A" ]; then
    clear
    echo "Enter package name"
    read PKG
    echo "Adding"
    echo "IgnorePkg = $PKG" >> /etc/pacman.conf
    echo "HoldPkg = $PKG" >> /etc/pacman.conf
    echo "Package added. Press Enter to Continue"
    read
    pkg_ctl
    elif [ "$CHOICE" = "R" ]; then
    clear
    echo "Enter package name"
    read PKG
    echo "Removing"
    cat /etc/pacman.conf | grep -v "$PKG" >> /etc/pacman1.conf
    mv /etc/pacman1.conf /etc/pacman.conf
    echo "Package removed. Press Enter to Continue"
    read
    pkg_ctl
    elif [ "$CHOICE" = "B" ]; then
    echo "Press enter to continue"
    read
    manage
    fi
    function manage {
    clear
    if [ "$UID" != 0 ]; then
    echo "Error! Not running as the root user right now. Become a super user and try again"
    exit 1
    fi
    clear
    echo " Pacman Configuration"
    echo " What would you like to do?"
    ###END DEFINE####
    ###MANAGER####
    manage
    OPTIONS="Server_Control Package_Control Exit"
    select opt in $OPTIONS; do
    if [ "$opt" = "Server_Control" ]; then
    srv_ctl
    elif [ "$opt" = "Package_Control" ]; then
    pkg_ctl
    elif [ "$opt" = "Exit" ]; then
    clear
    exit 0
    fi
    done
    ###ENDMANAGER###
    Sadly my webserver is down as of now, so I can't post these scripts directly from my site, but this should work fine anyway. Enjoy!

    Oh no I understand. Hah I figured that'd be the case that somebody created something like this.
    Well my main point with these scripts was really just for self-teaching and such. Essentially though, my idea was to make a script which can help somebody who is newer and doesn't quite know all the helpful syntax of pacman or somebody who just doesn't want to be bothered with it have a quick and easy way to do it. Since there are already GUI front ends to do something like this, I figured a scripted version would be nicer for somebody who may need something less resource intense. That's the first script
    The second script was just to make it a little less painful to navigate the pacman.conf file without having to go through it and figure out the syntax for everything (if you don't already know it) because I figured it was easier to find just a URL than to know all the syntax of the config file, and this just fills in the voids for you.
    I use it for myself daily and it does make it a bit easier when you just want to install a package or update real quickly. Like I said though, I'm not surprised that there's something better implimented already. I figured I'd just toss it out there to see who could enjoy it. I appreciate the questioning though as you're right; I didn't make myself very clear-cut. At any rate, useful or not for people, they're here haha. Like I also said, I wrote these just as a learning experience for coding and other things. So, if somebody can find a use for them, all the better. If not, um, sorry to waste thread space haha.

  • Pacman looking for pacman.conf in the wrong place?

    When using yaourt, I had been getting an error message to do with pacman.conf not being found. I fixed this by creating my own and saving it in
    /usr/local/etc/pacman.conf
    (it's the only file in /usr/local/etc)
    I then got the error message:
    failed to initialize alpm library (could not find or read directory)
    After some googling and learning about the find command, I found the following files:
    /usr/lib/libalpm.so
    /usr/lib/libalpm.so.8
    /usr/lib/pkgconfig/libalpm.pc
    /usr/lib/libalpm.so.8.0.2
    So I'm guessing that I do have the alpm library, but pacman (or Yaourt?) isn't finding it.
    Further use of 'find' found the following versions of pacman:
    /usr/local/etc/pacman.conf
    /etc/pacman.conf
    Which then lead me to believe that I have the necessary files but they are in the wrong place or there is a config file (or something) that I need to alter.
    Any ideas what I've done wrong and how to correct it?
    Thanks, James

    I've just tried
    pacman -S man-pages
    as a test, and it worked ok.
    So, Bug Wrangler is probably right. Any ideas how I fix it, or is the solution to start again? If I need to start again, is there an easy way to remove yaourt?
    Last edited by james13 (2014-10-05 18:57:00)

  • Pacman.conf kinda confused

    Hello i am just trying out Arch Linux and just did a fresh install. And i trying to enable the repositories and i seem to keep running into an error
    everytime i type pacman or anything related it get this error
    error: config file /etc/pacman.conf, line 65: directive 'Add your preferred servers here, they will be used first' not recognized.
    I know you have to add your own mirrors and such which i did, but still getting errors here is my etc/pacman.conf and /etc/pacman.d/mirrorlist
    here is the 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)
    #NoPassiveFtp
    #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.
    # Testing is disabled by default.  To enable, uncomment the following
    # two lines.  You can add preferred servers immediately after the header,
    # and they will be used before the default mirrors.
    #[testing]
    #Include = /etc/pacman.d/mirrorlist
    [localmirror]
    Server = http://www.pollicina.org/arch/localmirror
    core
    Add your preferred servers here, they will be used first
    Server = http://mirrors.easynews.com/linux/archl … po/os/i686
    Include = /etc/pacman.d/core
    extra
    Add your preferred servers here, they will be used first
    Server = http://mirror.pacific.net.au/linux/arch/extra/os/i686
    Include = /etc/pacman.d/extra
    community
    Add your preferred servers here, they will be used first
    Server = http://shlunix.org/archlinux/repo/os/i686
    Include = /etc/pacman.d/community
    # An example of a custom package repository.  See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #Server = file:///home/custompkgs
    Here is the /etc/mirrorlist
    # Arch Linux repository mirrorlist
    # Generated on 2009-06-16
    United States
    Server = http://mirror.archlinux.com.ve/$repo/os/i686
    Server = http://archlinux.unixheads.org/$repo/os/i686
    Server = ftp://mirror.cs.vt.edu/pub/ArchLinux/$repo/os/i686
    Server = http://mirror.cs.vt.edu/pub/ArchLinux/$repo/os/i686
    Server = ftp://mirrors.easynews.com/linux/archli … po/os/i686
    Server = http://mirrors.easynews.com/linux/archl … po/os/i686
    Server = ftp://ftp.archlinux.org/$repo/os/i686
    Server = http://mirrors.gigenet.com/archlinux/$repo/os/i686
    Server = ftp://ftp.gtlib.gatech.edu/pub/linux/di … po/os/i686
    Server = http://www.gtlib.gatech.edu/pub/linux/d … po/os/i686
    Server = ftp://mirrors.hosef.org/archlinux/$repo/os/i686
    Server = http://mirrors.hosef.org/archlinux/$repo/os/i686
    Server = ftp://ibiblio.org/pub/linux/distributio … po/os/i686
    Server = http://distro.ibiblio.org/pub/linux/dis … po/os/i686
    Server = ftp://locke.suu.edu/linux/dist/archlinux/$repo/os/i686
    Server = ftp://mirror.rit.edu/archlinux/$repo/os/i686
    Server = http://mirror.rit.edu/archlinux/$repo/os/i686
    Server = http://schlunix.org/archlinux/$repo/os/i686
    Server = http://mirror.sourceshare.org/archlinux/$repo/os/i686
    Server = http://archlinux.umflint.edu/$repo/os/i686
    Server = http://mirror.umoss.org/archlinux/$repo/os/i686
    # Venezuela
    #Server = http://mirror2.archlinux.com.ve/$repo/os/i686
    # Vietnam
    #Server = ftp://202.78.230.5/archlinux/$repo/os/i686
    #Server = ftp://ftp.indochinalinux.com/archlinux/$repo/os/i686
    #Server = ftp://mirror-fpt-telecom.fpt.net/archli … po/os/i686
    #Server = http://mirror-fpt-telecom.fpt.net/archl … po/os/i686
    Any help is greatly appreciated.

    Thanks for the reply appreciate it.
    And i think i understand it alittle bit better here is a link to my changed pacman.conf and mirrorlist
    Im still receiving errors about the mirrors
    pacman.conf link
    http://pastebin.ca/1576914
    mirrorlist
    http://pastebin.ca/1576916

  • Cannot enable wget in pacman.conf(solved)

    Pacman does not recognize wget in /etc/pacman.conf....
    [root@n6re ~]# pacman -Scc
    error: config file /etc/pacman.conf, line 19: directive 'xferCommand' noted.
    [root@n6re ~]#
    Attempting to eliminate pacman's filling of my /root partition during full system download I attempted to use wget to aid in downloading.  The result is noted above.
    My root partition is filled...used
    pacman -Scc
    once but the problem repeated.  Some users use wget to solve the problem so I tried that .
    Attempted to use:
    pacman -Q |less
    The same error concerning wget occured again and no display of installed packages ensued.
    So for the present cannot state which pacman version I have installed.
    Will restore /etc/pacman.conf to original condition and report further on this problem.
    Last edited by lilsirecho (2009-10-10 06:19:32)

    Thanks for the sharp eye.
    Reset my modem, re-installed pacman and corrected the pacman.conf entry for wget.
    All is well again....

  • [SOLVED] pacman.conf simple line error or... ?

    So here's what happened:
    I was trying to enable the [multilib] repository. (As according to https://wiki.archlinux.org/index.php/Multilib).
    Thus, I went ahead and uncommented the following from /etc/pacman.conf:
    [multilib]
    SigLevel = PackageRequired
    Include = /etc/pacman.d/mirrorlist
    To edit /etc/pacman.conf, I used LibreOffice Writer. I saved the file as a .txt document and made sure that it is properly renamed as pacman.conf.
    Next, I went to update pacman's package list by running pacman with the -Sy switch.
    And then, voila:
    # pacman -Sy
    error: config file /etc/pacman.conf, line 1: All directives must belong to a section.
    However, when looking at pacman.conf I don't see any errors in line 1. Nor do I see any problems with directives.
    Here are the contents of pacman.conf:
    http://pastebin.com/raw.php?i=XWh9eagr
    Is there a simple problem with a line in pacman.conf --- or is it because I used LibreOffice Writer instead of Vi? Or?
    Is the answer to this right in front of my nose?
    Thank ya'll..
    Last edited by adamstjohn (2012-12-08 00:31:28)

    adamstjohn wrote:or is it because I used LibreOffice Writer instead of Vi?.
    LibreOffice Writer is a word processor - it will do odd things to your .conf files. Use a text editor. If you don't want to use vi, then use nano, or gedit or anything other than a word processor.
    Moving to NC: not at all related to pacman...

  • Pacman.conf parser for bash

    I was thinking about the best way to parse pacman.conf for a bash script, and I was wondering if anyone had come up with something. If noone has, I was thinking of writing a perl script to do it:
    $ pacparser.pl
    pacman_repos=('core' 'extra' 'community' 'archlinuxfr')
    pacman_mirrors=('ftp://ftp.archlinux.org/core/os/i686' [...]
    eval `pacparser.pl`
    for repo in ${pacman_repos[@]}; do
    foo

    Hi,
    I once wrote a config parser in bash for a slighty different config file style, but I got it adapted to .ini style files pretty quickly. It skips comments and whitespace, but it doesn't support inline comments (I am too sleepy atm to add that, maybe tomorrow  ). The following code includes the functions and a usage example. Maybe it's of use for you.
    #!/bin/bash
    CONFIG=/etc/pacman.conf
    function readconf() {
    match=0
    while read line; do
    # skip comments
    [[ $line =~ ^\ {0,}# ]] && continue
    # skip empty lines
    [[ -z "$line" ]] && continue
    # still no match? lets check again
    if [ $match == 0 ]; then
    # do we have a section tag ?
    if [[ $line =~ ^\[.*?\] ]]; then
    #strip []
    line=${line:1:$((${#line}-2))}
    # strip whitespace
    section=${line// /}
    # do we have a match ?
    if [[ "$section" == "$1" ]]; then
    match=1
    continue
    fi
    continue
    fi
    # found next section after config was read - exit loop
    elif [[ $line =~ ^\[.*?\] && $match == 1 ]]; then
    break
    # got a config line eval it
    else
    var=${line%%=*}
    var=${var// /}
    value=${line##*=}
    value=${value## }
    eval "$var='$value'"
    fi
    done < "$CONFIG"
    readconf options
    echo $HoldPkg
    echo $section
    readconf core
    echo $Include
    PS.: At the moment it works on a per section basis, but this could as well be wrapped up to read the pacman.conf only once.
    Last edited by chimeric (2008-08-05 00:52:18)

  • Edit pacman.conf without editor

    Hi folks,
    I have got a BIG problem. That is what I did:
    I installed a new /etc/pacman.d/mirrorlist
    after that I got an error in pacman, which said that the architecture is unknown or sth
    so I inserted "Architecture = x86_64" into pacman.conf and did some updates
    after a restart some time later xinit failed to initialize "x" ... probably because my window manager can not load (see following text)
    well, now I am left without X and when I try to start vim it says sth like: "error while loading shared libraries gtk-x11-...sth... wrong ELF class ELFCLASS64"
    now I tried to install nano via pacman which was successful, but as soon as I try to start nano it says "/usr/bin/nano file or directory not found" (I also tried to install vi with the same result)
    Now I am really lost since I can not edit any files, especially pacman.conf to change the architecture, since I guess the origin of my problem is that I did not have a x64 system in first place!? Even though I am sure I have ...
    Do you have any idea how to fix my system? I can still use pacman and mount a usb device, if that helps?
    Best,
    Tobias

    Please try to give us some more information:
    Do
    ls -l /usr/bin | grep nano
    and see if nano is actually present. Also check if "/usr" is mounted
    mount
    . If you are unsure, post the output.
    Also please provide your pacman.conf so we can see if there's anything wrong there. To get it do
    cat /etc/pacman.conf
    . Then place it in the file as noted below.
    Note: to provide the output do the following:
    COMMAND > ~/command_output.txt
    . Then you can copy those files to a usb drive via
    cp ~/command_output.txt /path/to/usb
    This could help us figure out the problem.
    You could also look into tools for "editing" a file in the command line. Maybe 'sed' can help there, not so sure myself. Perhaps you can do some kind of
    cat /etc/pacman.conf | *command to replace/remove the Architecture line* > /etc/pacman.conf
    Watch out though, ALWAYS make backups, you don't want to screw things up even more.
    Hope this helps.
    By the way: You change doesn't look so wrong if I am not mistaken. I wonder how this could screw things up this way?
    Oh by the way: If all else fails, boot a live cd, mount your system and edit the files via live cd tools. If you then want to test things you can chroot into your mounted system.

Maybe you are looking for

  • Short Dump-Syntax error program"CL_RSD_MULTIPROV==CP" after EHP1SP5 upgrade

    Hi,      MultiProvider Activation/Display data is resulting into short dump with following text Error in the ABAP Application Program The current ABAP program "CL_RSD_MULTIPROV_CHECK========CP" had to be terminated because it has come across a statem

  • Field Char(255) for texts in accounting line item

    Hi Experts, I need a field with type/len char(255) for texts in accounting line item. I know I can use Long Text (EENO_DYNP-ZEILE) but it is not shown in TCode FAGLL03 and that is my need. Please help me. Best regards, Itajaci Júnior

  • [WIFI detail]Is there general build-in method to fetch WiFi SSID detail in windows?

    In Windows 8/10 taskmgr [performance] tab, select one ethernet and right click the moving graph, we can view network detail statistics. But there is no difference of counters/properties type between WIFI and cable connection. WIFI has its important p

  • Log Display Profile using BAL_DSP_LOG_DISPLAY

    Hi Experts, Im facing an upgrade on my client, from 4.6C to ECC 6.0, and we are facing somes problems using the FM BAL_DSP_LOG_DISPLAY. The problem its that on the older version the Log appears on the log screen, but on the new version the screen app

  • Ora-01405

    I want to get something clear: Is it for oracle 10g still true that it is best to use indicator variables in order to prevent oracle error ora-01405 ? Or is there another, smarter way to handle null values in columns. Also, I don't see this error mes