Pacman.conf for a server

I'm curious how others are configuring pacman for a server system.  I've read in multiple places the normal thing to do is have an "IgnorePkg = kernel26" line in pacman.conf.  But is this really enough?  What about the packages that depend on kernel26?  Isn't it possible for kernel-headers and glibc (etc) to easily become out of date causing user land apps to fail since newer entry points might/would be missing in the older kernel?
Thanks.

insanum wrote:What about the packages that depend on kernel26?
Not a problem, they are still upgraded by the usual:  pacman -Syu
To detect out-of-sync library soname versions (which will probably be your next question), use findbrokenpkgs.

Similar Messages

  • Pacman.conf NEED tips for totally offline install with DVD repository

    OBJECTIVE: after a base install with ARCHBOOT be able to install from DVD repository which contains repo-add database.
    My DVD contains the folder from /var/cache/pacman/pkg.
    ON the DVD I have the folder 'pkg' at the dvd root level and another folder which has my already built packages fro AUR.
    The database called 'custom.db.tar.gz' created with repo-add exists IN the pkg folder on the DVD.
    The built AUR packages are in a seperate folder called '_built' at the dvd's root level as well and they are not included in the repo-add database.
    I am able to mount the dvd, cd to the pkg folder and use  pacman -Ud to install them though this requires that I type in the full name of the package and I get dependence issues and '*.so' type files not found.
    IF I copy all the files from the DVD to the var/cache/pacman/pkg folder I am able to add my local repository to pacman.conf and MUCH more efficient install. I can use pacman -S xorg for example, and I think it finds dependencies even. Can't recall exactly at the moment.
    SO: do I need to alter pacman.conf  cache location line and the other lines?
    Would I change the 2nd and 3rd lines to get max pacman ability when using DVD repository???
    Pointing them to my DVD folder after mounting the dvd
    #RootDir     = /
    #DBPath      = /var/lib/pacman/
    #CacheDir    = /var/cache/pacman/pkg/
    #LogFile     = /var/log/pacman.log
    I really would like to have as much power and flexibility when using the DVD as the repo.
    Can anyone tell me what I should alter in pacman.conf for this.
    I am fine if I have to alter the cache location line temporarily if it will give me additional pacman ability.
    I have read all the wiki stuff for sure though I'm still a bit in the dark and wanted to ask without typing the many many options.
    One big one for me is I don't yet know how to set the SERVER = in pacman.com to look at the mounted DVD and the pkg folder specifically.
    I do mount /dev/sr0  /mnt/cdrom
    So what would I put as the SERVER for this in pacman.conf
    SERVER = /dev/sr0   ?????   or   /dev/cdrom  ????    or /mnt/cdrom I think ????
    dunno!
    AND I really probably DO have to temporarily alter the pacman.conf  cache location line to get pacman to do dependency installs and let me type short lines instead of the full package name.
    THANKS! this one is BIG for me!!!!! :---)
    Last edited by yvonney (2009-06-18 20:27:14)

    COMMENT WRITTEN LAST: I was about to delete a lot of stuff here though thought to just say sorry for not taking the brain-time to slim it. The bold and white boxed part is the main related quest-ion.
    you might find a few useful tools on my site (in my sig), e.g. pkgd if you want to save bandwidth on a LAN --- pbget if you want to easily get PKGBUILDs etc from the AUR and official repos, etc.
    WOW Xyne !!!! thanks.  pbget etc. sound very cool.
    I used yaourt until very recently. Then went ....hmmmm... should learn about manual building and local repo. Where I'm at now is trying to do as much manually as possible. I think I kinda know what packages I want and there will only be some changes from that in the future. There's maybe 20 packages from AUR for me. [PLUS their dependencies]
    Of course: I am doing the repo-add local repositories thing for speed, learning, and as part of my whole 'best practices' growth. Plus it will come in very handy when helping other decide quickly if a barbones mainly wm/ncurses lightweight system is for them.
    You certainly spark a question or two!
    [AUR and dependencies via yaourt affecting my plans to now go manually]
    As these have all ALREADY been installed via yaourt my BIG concern is that I've never found much of a yaourt/cache folder. You see, as you'd know many many times upon installing vai yaourt there's some dependency that may, or I guess, may not be in the standard repos.
    After installing these packages via yaourt do the dependencies go into /var/cache/pacman.pkg and is pacman aware of it when I do a repo-add for thecustom database. If so, then all if fairly cool for my plans. I bet there's a few idiosyncrasies about AUR and dependencies maybe.
    -AUR dependency resolution-
    Using a custom repo will not really work for general use because you would need to manually populate the database with the dependencies anyway.
    I'm fine with manually doing dependencies - though need to know if my yaourt usage ALREADY put the latest dependencies in the pacman cache for AUR unsupported packages AND is there a way with the whole repo-add, local repositry, pacman and aur concpt I'm planning to fine tune to have the dependencies update when I go back to the online repositries? I don't think so based on my usage with yaourt, though can't quite recall.
    As I will be enjoying makepkg building the group of packages I nee to get from AUR for the forseeable future (that are not in the main 3 repos of course)
    I'm still wondering about the inter-relationships. So: I already have installed and/or built the packages for everything I expect to need mostly.   I never became beyone mediocre with yaourt.  and that fine, though I now have to consider that in a new install I DO have the latest AUR built packages, though will there be the right dependencies ALREADY in my /var/cache/pacman/pkg ?
    There's a few things that I'd love to really understand about this. Even if it ends up that dependencies for the AUR packages is always a bit trickier.
    QUESTION: right now I am uable to try custom repo from flash stick as it's read only. I'll be googling this one out and am really looking forward to having a flash stick with ARCHBOOT and I gues ONE repo pkg folder and database on it.
    NOTE: I will put the custom repo above the stock ones in pacman.conf. I just commented out the others as I was doing all this offline.
    I've dumped the dvd as a repo and have switched to a flash stick.  I've extracted the archboot out to a 4 gig flash stick.
    dd if=/root/Desktop/archlinux-2009.05-2-archboot.iso of=/dev/sdb  Its read-only at the moment and no matter what I've tried it stays that way. Maybe I need to use the HPutil on it. It definitely isn't writeable so I won't ponder or note observations here save to say that 'm stumped as to how to get files copied to it.
    And now what may be the way I'd like to work:    Keep my folder for building packages from aur which is /root/aur. Then after doing the fun makepkg --asroot   or even makepg -i as root to install. Though I'll probably after the build THEN just copy the built packages from my /root/aur to /var/cache/pacman/pkg   and install from there as I DO plan to use the online repos.
    I will ALSO copy the file to my USB stick or maybe just sync to it and do a the repo-add thing in   /var/cache/pacman/pkg   and keep the stick as both backup and 'in the ready' reinstaller.
    Um, now  could spend an hour editing down the above!!!
    wondrous thanks!
    Last edited by yvonney (2009-06-19 07:38:25)

  • 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)

  • [Solved](Offline) install of packages, pacman.conf?

    Good morning (or what ever time of the day it is for you now )!
    I tried offline installation as this guide http://wiki.archlinux.org/index.php/Off … f_packages instructed plus configured pacman.conf to have Server = file:///var/lib/pacman/sync/approriate_dir lines. When trying pacman -Sp --noconfirm any_package I get ERROR: not found in sync db. Is there something I should know? Is my pacman.conf file made by an ass ?
    Last edited by aCyd (2008-03-24 11:53:22)

    I fixed it. This is how (maybe someone finds this useful):
    the pacman that came with the installation cd was apparently different version than the one used when writing the wiki. It wouldn't look for the core.db.tar.gz and the other files from the /var/lib/pacman/sync/core etc folders (perhaps it would have found them from the /var/lib/pacman/core etc folders there were already, who knows didn't try).
    I made a folder called /mnt/usb
    mkdir /mnt/usb
    mounted the usb stick (it showd as sdb1 for me)
    mount /dev/sdx /mnt/usb
    and added
    Server = file:///mnt/usb/Arch
    to my pacman.conf under [core], [extra] and [community] so pacman found them from my usb stick along with packages. I also made sure that the 'Include /path/to/mirrorlist' was commented. No tar command was needed.
    pacman -Sp --noconfim {package-name} > pkglist
    didn't work for me. I just got the last error line without any package names. Instead I used grep
    pacman -Syu --noconfirm | grep error > pkglist
    and upgraded the whole system.
    I modified the pkglist in emacs with replace-string to remove '' from disk : No such file or directory' after the package name and then again to replace 'error: failed retrieving file '' with the url of my selected mirror. (I know that could have been done more elegantly using sed or something or even a proper regexp in emacs if not with the command) After that I downloaded the packages as instructed, copied them to my usb and mounted it to my Arch system and ran again
    pacman -Syu

  • What should be done in certmap.conf for 2-way SSL support from a standalone Java application to an SSL enabled LDAP Server

    To support certficate based client authentication using 2-way SSL from a standalone java application which uses JNDI and JSSE1.0.2 to connect to an SSL enabled LDAP Server how do we configure the certmap.conf?Is there any additional setup required at the LDAP Server side apart from enablinf SSL with the option"Required Client Authentication" enabled.The 2 way SSL handshake goes through but the access log file (After configuring the certmap.conf for the issuer DN of the client certficate etc..)shows SSL failed to LDAP DN?But inspite of this access log error the Java client does get an SSL Connection object with which it is able to connect to the LDAP.IS the certmap.conf file being looked up by the LDAP Server at all?

    have you out.flush() and out.close() before you call connection.getInputStream()?

  • Pacman.conf file syntax highlighting for nano

    Hi, here is pacman.conf file syntax highlighting for nano. It may be useful for those who edit their pacman.conf regularly.
    Just put this lines in the end of your /etc/nanorc or ~/.nanorc file:
    # syntax highlithing in pacman.conf
    syntax "pacman.conf" "pacman\.conf$"
    color brightwhite start="\[" end="\]"
    color brightyellow ".*="
    color brightred "=.*"
    color white "="
    color brightblue "\[|\]"
    color brightcyan start="/|http|ftp" end=".*"
    color green "#.*"
    In this thread you can find rc.conf file syntax highlighting.

    thank you! i always accidentally open up nano, find out text is practically unreadable with its default colours, close it and then wait the horrific 4 seconds it takes for emacs to spring to life.

  • Has Pacman3 dropped support for the NoUpgrade Lines in pacman.conf?

    I just upgraded to Pacman 3.  When I upgraded I quickly saw some output on my sceen saying it was doing a one time "reset" and I believe it said I could delete the NoUpgrade lines in pacman.conf.
    I noticed that pacman.conf.pacnew does not have any NoUpgrade lines.
    Should I delete all the NoUpgrade lines from my pacman.conf file?
    Is the NoUpgrade line no longer supported in pacman3? 
    If so, how can I protect some of my config files from being overwritten during upgrades?
    Rob

    They're still supported, there just aren't any by default anymore. They were redundant.
    You can/should remove any that are listed in the "backup" list for the packages they come from (pacman -Qii package). Those are all handled as if they were in NoUpgrade anyway.

  • 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

  • [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.

  • Pacman.conf

    My pacman.conf looks like this:
    [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
    [archlinuxfr]
    Server = http://repo.archlinux.fr/x86_64
    I included archlinuxfr so I could install yaourt. Isn't this repository a potential source of incompatible packages as stated in http://wiki.archlinux.org/index.php/Mirrors ? OTOH if I remove it I won't be able to update yaourt.
    Note: If mirrors have been stated directly in pacman.conf, remember to use the same mirror for all repositories. Otherwise packages that are incompatible to each other may be installed, like kernel26 from [core] and an older kernel module from [extra].

    You can install yaourt the old fashion way by downloading the PKGBUILD from the AUR and using makepkg...
    But, you should be fine.   Nothing from the archlinuxfr repo will be installed with in place of packages in the official repos.  But of course, that repo is not supported and straight after large rebuilds you may have issues with the packages in it.

  • 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.

  • 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)

  • 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

Maybe you are looking for

  • DVCPRO 50 in 16:9 for 4:3 finish

    Hello, Can't figure this out from other posts so I hope ya'll can help. First of all is 720x405 full res when shot in 16x9 on a SDX900? Second, I want to finish will all the pixels I can so I don't want to pan and scan. I want to just show it letterb

  • Update for Acrobat 9 Pro Extended and Catia V5 R22

    Hello ... We are using Adobe Acrobat 9 Pro Extended (now at version 9.5.4) at our company for converting CatPart-Files to 3dPDF ... Now we've got Catia V5 R22 (V5R62012) Files here and the converter can't read them ... Will there be an update and whe

  • HT2534 i phone 4s app store download problem

    when i am downloading free apps from app store it is showing "your account is not valid for use in the emirati store.you must switch to the indian store before purchasing.how can i correct this

  • Text and aspect ratio for creating it in Photoshop

    Hi there, I am doing something that will be displayed via a laptop. I am making titles and text blocks in photoshop, because the text feature in FCE looks quite bad with scrolling or animated texts. I am confused about the aspect ratio. For something

  • Locking and unlocking nano video?

    I have got an IPOD Nano Silver video 4GB. I am having a little trouble with the locking device. Can anyone tell me how to lock the device so it doesn't come on when it is my purse as it has already done a few times. I thought I had it locked but it w