Implications of new 'source' in pacman.conf

I apologize in advance for what seems to be a very basic and FAQ-ish question.
I've always wanted to know, what are the implications of adding new sources
to my pacman.conf (or in the case of Ubuntu/Debian, the /etc/apt/sources.list file?)
Let's say that you put some joker's site in your pacman.conf file, and they put
a malicious FOO version 2 software in their repository.
When I run pacman -Syu, does pacman say "Well, software FOO is at version 1 in
the official Arch repos, but it's at version 2 in Joker's repository, what do you want to do?"
Sorry for the basic question, but often think that if I was trying to proliferate some keylogger or
other malware, what I would do is write some good software FOO, or act as a mirror for some good software FOO,
and then provide updates for software BAR, and have BAR be a new version of some core-software
that takes data from your keyboard and forwards it to my e-mail account.
Is my question/concern valid, or am I totally off track?  I recently thought about this when adding
a repository to my pacman.conf file so that I could get updates for the yaourt application.  I'm not
accusing the author of yaourt of anything at all, and think the product is great.  But I just want to know if
the author of yaourt issues an update to "readline", if Arch will accept this update as a valid update the next time
I run pacman -Syu?
Thanks very much, and links/RTFMs are appreciated.
--Nate

In pacman.conf(8) (man pacman.conf), under "REPOSITORY SECTIONS":
The order of repositories in the configuration files matters;
repositories listed first will take precedence over those listed later
in the file when packages in two repositories have identical names,
regardless of version number.
I tested this with a local repo and it appears to work as documented; pacman didn't prompt me to upgrade 'bash' to the newer version I had put in my test repo which was below [core] in pacman.conf.
Last edited by foutrelis (2009-07-30 08:50:02)

Similar Messages

  • Pacman: a country request in pacman.conf

    Dear all,
    first, excuse me for my bad english.
    Setting the nearest mirror in all /etc/pacman.d files should be tedious especially if I am a men that go around the world (this is not my case).
    Is it possible to add a new feature in pacman.conf to enable the user to set the mirror country without touch the
    /etc/pacman.d files?
    Something like COUNTRY=IT or MIRROR_COUNTRY=IT
    So, if I'll go in another country or only to test other mirrors, I have only to change a variable.
    Thanks for the attention
    morellik

    I think the main problem is that there are several mirror lists to edit, while one is enough.
    There is a way in pacman 3.1 to have just one list, so it'll be much easier to edit it manually.
    Just move the mirrors from your country at the top in one file, and you're done.

  • Pacman.conf problem [solved]

    Hi im having a problem with yaourt, and packer and i cant also install any package form Aur for example:
    packer -S opencascade
    grep: /etc/pacman.conf: Permission denied
    error: config file /etc/pacman.conf could not be read: Permission denied
    error: config file /etc/pacman.conf could not be read: Permission denied
    Aur Targets (1): opencascade
    Proceed with installation? [Y/n] y
    Dependencies for `opencascade' are not met, not building..
    i have the same problem with yaourt
    if i try to install from a tarball  for example i get this
    makepkg -s
    ==> Making package: plank-bzr 820-1 (Fri Jun 7 13:06:26 ART 2013)
    ==> Checking runtime dependencies...
    error: config file /etc/pacman.conf could not be read: Permission denied
    ==> ERROR: 'pacman' returned a fatal error (1):
    [dam2@dam1d plank-bzr]$
    i installed arch linux again yesterday and i copy the pacman.conf file that i have in my older arch linux to my new one
    # /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
    #GPGDir = /etc/pacman.d/gnupg/
    HoldPkg = pacman glibc
    #XferCommand = /usr/bin/curl -C - -f %u > %o
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    #CleanMethod = KeepInstalled
    #UseDelta = 0.7
    Architecture = auto
    # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
    #IgnorePkg =
    #IgnoreGroup =
    #NoUpgrade =
    #NoExtract =
    # Misc options
    #UseSyslog
    #Color
    #TotalDownload
    CheckSpace
    #VerbosePkgLists
    # By default, pacman accepts packages signed by keys that its local keyring
    # trusts (see pacman-key and its man page), as well as unsigned packages.
    SigLevel = Required DatabaseOptional
    LocalFileSigLevel = Optional
    #RemoteFileSigLevel = Required
    # NOTE: You must run `pacman-key --init` before first using pacman; the local
    # keyring can then be populated with the keys of all official Arch Linux
    # packagers with `pacman-key --populate archlinux`.
    # 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
    # If you want to run 32 bit applications on your x86_64 system,
    # enable the multilib repositories as required here.
    #[multilib-testing]
    #Include = /etc/pacman.d/mirrorlist
    [multilib]
    Include = /etc/pacman.d/mirrorlist
    # An example of a custom package repository. See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #SigLevel = Optional TrustAll
    #Server = file:///home/custompkgs
    # /etc/pacman.conf
    # See the pacman.conf(5) manpage for option and repository directives
    # GENERAL OPTIONS
    modedit: added code tags /Xyne
    Last edited by adcdam (2013-06-07 19:28:32)

    grep: /etc/pacman.conf: Permission denied
    error: config file /etc/pacman.conf could not be read: Permission denied
    error: config file /etc/pacman.conf could not be read: Permission denied
    This tells you that you have incorrectly configured permissions when you copied the file. Fix that with
    chmod 644 /etc/pacman.conf
    Also note that I have added code tags ([code]) to your post. Please use them in the future when you post command output or file contents.

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

    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.

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

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

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

  • Adding repos to pacman.conf: A vs B

    It seems that people do things in two ways.  I personally feel that one of these ways is "right", because it is the way that Arch does it by default, but that doesn't mean that the other way is "wrong".  Anyway, I wanted to see what most people do with pacman.conf
    Example A:
    To use this repository, add the following to your /etc/pacman.conf:
    [shadowhand]
    Server = http://archpkg.wgilk.com/shadowhand
    This is also the way that z4ziggy reccommends that people add the Archie repos.
    Example B:
    Add a file to /etc/pacman.d called "dibble" containing:
    # dibble: dibblethewrecker's pkg repo
    # http://dtw.jiwe.org
    [dibble]
    Server = http://dtw.jiwe.org/pkgs/dibble
    Add this line to pacman.conf:
    Include = /etc/pacman.d/dibble
    So, what do most people do?  14 day poll.  I'd also appreciate input from the devs if they have any.

    tomk wrote:
    dibblethewrecker wrote:I personally feel that one of these ways is "right", because it is the way that Arch does it by default
    The default pacman.conf has examples of both, dibble - [testing] is commented, but it's using Server, not Include.
    Most new servers are single and unmirrored, so that's my vote, but I think it's more of a discussion than a poll. Why does it matter, by the way?
    Because we need code to parse pacman.conf to check that people have certain repos list.  I wrongly assumed people used Include over Server but it seems I was wrong!
    kth5: nice idea but no - if you have all your repos listed in one file then syncing custom will only sync from the first Server address listed

  • 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

  • Feature request: extra Include directive in default pacman.conf

    Since arch's move to systemd, cluster administration requires less and less use of sed.  In particular, systemctl, timedatectl, /etc/sysctl.d, /etc/modules-load.d, /etc/hostname, /etc/vconsole.conf, etc. make scripting configuration changes both simpler more robust than the old approach of editing multi-purpose files such as /etc/rc.conf.
    An exception to this trend is pacman.conf, which has non-trivial default contents that almost certainly needs to be customized (e.g., to enable multilib and local repositories).  These changes would be much simpler if the default pacman.conf included a line such as:
    Include = /etc/pacman.d/conf/*.conf
    Currently my scripts use sed to insert this line at the end of the [options] section.  (Unfortunately "Include = /etc/pacman.d/*.conf" doesn't work because there's sometimes a gpg.conf file in /etc/pacman.d, but maybe that could be fixed.)
    I don't know if the forum is the right place for feature requests, but I wanted to get people's reactions.  If people think it's a good idea I can add it as a feature request to the bug tracker.
    There are several other pieces of low-hanging fruit where I'd like to see arch decrease the complexity scripting configuration (e.g., an unattended pacman-key --populate and easier customization of mkinitcpio.conf), but I figured I'd start with the simplest and gauge people's reactions.

    aweb wrote:I don't know if the forum is the right place for feature requests, but I wanted to get people's reactions.  If people think it's a good idea I can add it as a feature request to the bug tracker.
    It isn't... best to place the feedback in flyspray so it will be sure to get to the peeps that need to see it.  Welcome to Arch.

  • About creating a new source system on BW pointing to an Oracle database

    hi friends
      i m facing problems when i 
    creating a new source system on BW in AIX pointing to an Oracle database, our bw oracle use 10idatabase ,and we want to connet to 9idatabase(Windows) to get data for BW
    (1.)     in /oracle/P01/102_64/network/admin  tnsnames.ora I hava  add
    SJPT =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 68.16.211.177)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = SJPT)
    (2) and in etc/hosts I hava  add
    68.16.211.177 SJPT
    (3) in p01adm> tnsping SJPT it is OK
    (4)but when i
    in  BW RSA1 DATA SOURCE 
    create db connect:
    DBMS: ORA
    USER NAME: SAP
    DB PASSWORD: SAP
    [email protected]
    i t give me the error message :
    ORA-12154: TNS:could not resolve  the connect identifier
    please help me

    HI,my trans.log file is
    4 ETW000 R3trans version 6.13 (release 700 - 20.02.06 - 16:15:00).
    4 ETW000 unicode enabled version
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 13.11.2007 - 10:16:48
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: R3trans -d
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [dev trc     ,00000]  Tue Nov 13 10:16:48 2007                              81  0.000081
    4 ETW000  [dev trc     ,00000]  db_con_init called                                    29  0.000110
    4 ETW000  [dev trc     ,00000]  create_con (con_name=R/3)                             50  0.000160
    4 ETW000  [dev trc     ,00000]  Loading DB library '/usr/sap/P01/SYS/exe/run/dboraslib.o' ...
    4 ETW000                                                                              43  0.000203
    4 ETW000  [dev trc     ,00000]  load shared library (/usr/sap/P01/SYS/exe/run/dboraslib.o), hdl 0
    4 ETW000                                                                           13346  0.013549
    4 ETW000  [dev trc     ,00000]  Library '/usr/sap/P01/SYS/exe/run/dboraslib.o' loaded
    4 ETW000                                                                              32  0.013581
    4 ETW000  [dev trc     ,00000]  function DbSlExpFuns loaded from library /usr/sap/P01/SYS/exe/run/dboraslib.o
    4 ETW000                                                                              35  0.013616
    4 ETW000  [dev trc     ,00000]  Version of '/usr/sap/P01/SYS/exe/run/dboraslib.o' is "700.08", patchlevel (0.46)
    4 ETW000                                                                              53  0.013669
    4 ETW000  [dev trc     ,00000]  function dsql_db_init loaded from library /usr/sap/P01/SYS/exe/run/dboraslib.o
    4 ETW000                                                                              34  0.013703
    4 ETW000  [dev trc     ,00000]  function dbdd_exp_funs loaded from library /usr/sap/P01/SYS/exe/run/dboraslib.o
    4 ETW000                                                                              53  0.013756
    4 ETW000  [dev trc     ,00000]  New connection 0 created                              23  0.013779
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              39  0.013818
    4 ETW000  [dev trc     ,00000]  db_con_connect (con_name=R/3)                         45  0.013863
    4 ETW000  [dev trc     ,00000]  find_con_by_name found the following connection for reuse:
    4 ETW000                                                                              32  0.013895
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              37  0.013932
    4 ETW000  [dev trc     ,00000]  Got LIBPATH=/usr/lib:/lib:/usr/sap/P01/SYS/exe/run:/oracle/P01/102_64/lib from environment
    4 ETW000                                                                             325  0.014257
    4 ETW000  [dev trc     ,00000]  -->oci_initialize (con_hdl=0)                         47  0.014304
    4 ETW000  [dev trc     ,00000]  Client NLS settings: AMERICAN_AMERICA.UTF8          3234  0.017538
    4 ETW000  [dev trc     ,00000]  Logon as OPS$-user to get SAPSR3's password           28  0.017566
    4 ETW000  [dev trc     ,00000]  Connecting as /@P01 on connection 0 (nls_hdl 0) ... (dbsl 700 240106)
    4 ETW000                                                                              34  0.017600
    4 ETW000  [dev trc     ,00000]  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    4 ETW000                                                                              35  0.017635
    4 ETW000  [dev trc     ,00000]    0 UTF8                                                      1 0x110f8b9c0 0x110fa3e38 0x110fa36e8
    4 ETW000                                                                              36  0.017671
    4 ETW000  [dev trc     ,00000]  Allocating service context handle for con_hdl=0       37  0.017708
    4 ETW000  [dev trc     ,00000]  Allocating server context handle                      24  0.017732
    4 ETW000  [dev trc     ,00000]  Attaching to DB Server P01 (con_hdl=0,svchp=0x110f94398,svrhp=0x110fa6158)
    4 ETW000                                                                              72  0.017804
    4 ETW000  [dev trc     ,00000]  Assigning server context 0x110fa6158 to service context 0x110f94398
    4 ETW000                                                                           36191  0.053995
    4 ETW000  [dev trc     ,00000]  Allocating user session handle                        73  0.054068
    4 ETW000  [dev trc     ,00000]  Starting user session (con_hdl=0,svchp=0x110f94398,srvhp=0x110fa6158,usrhp=0x110f937a0)
    4 ETW000                                                                              43  0.054111
    4 ETW000  [dev trc     ,00000]  Assigning user session 0x110f937a0 to service context 0x110f94398
    4 ETW000                                                                           10613  0.064724
    4 ETW000  [dev trc     ,00000]  Now '/@P01' is connected (con_hdl 0, nls_hdl 0).
    4 ETW000                                                                             964  0.065688
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => ORA-942 when accessing table SAPUSER
    4 ETW000                                                                            1183  0.066871
    4 ETW000  [dev trc     ,00000]  Disconnecting from connection 0 ...                   73  0.066944
    4 ETW000  [dev trc     ,00000]  Rolling back transaction ...                          28  0.066972
    4 ETW000  [dev trc     ,00000]  Closing user session (con_hdl=0,svchp=0x110f94398,usrhp=0x110f937a0)
    4 ETW000                                                                             146  0.067118
    4 ETW000  [dev trc     ,00000]  Now I'm disconnected from ORACLE                     409  0.067527
    4 ETW000  [dev trc     ,00000]  Try to connect with default password                  23  0.067550
    4 ETW000  [dev trc     ,00000]  Connecting as SAPSR3/<pwd>@P01 on connection 0 (nls_hdl 0) ... (dbsl 700 240106)
    4 ETW000                                                                              34  0.067584
    4 ETW000  [dev trc     ,00000]  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    4 ETW000                                                                              36  0.067620
    4 ETW000  [dev trc     ,00000]    0 UTF8                                                      1 0x110f8b9c0 0x110fa3e38 0x110fa36e8
    4 ETW000                                                                              36  0.067656
    4 ETW000  [dev trc     ,00000]  Assigning username to user session 0x110f937a0        22  0.067678
    4 ETW000  [dev trc     ,00000]  Assigning password to user session 0x110f937a0        41  0.067719
    4 ETW000  [dev trc     ,00000]  Starting user session (con_hdl=0,svchp=0x110f94398,srvhp=0x110fa6158,usrhp=0x110f937a0)
    4 ETW000                                                                              37  0.067756
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1017
    4 ETW000                                                                           33690  0.101446
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => CONNECT failed with sql error '1017'
    4 ETW000                                                                              36  0.101482
    4 ETW000  [dblink      ,00431]  ***LOG BY2=>sql error 1017   performing CON [dblink#3 @ 431]
    4 ETW000                                                                             122  0.101604
    4 ETW000  [dblink      ,00431]  ***LOG BY0=>ORA-01017: invalid username/password; logon denied [dblink#3 @ 431]
    4 ETW000                                                                              34  0.101638
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'P01'"

Maybe you are looking for

  • HP Procurve 2920: How to display Bandwidth usage by port

    We have recently expanded our Lab network using HP Procurve 2920 switches. Our original installation utilises Procurve 2910 switches and on occasion we have found it very useful to view the Bandwidth used by each port graphically via the web interfac

  • Order Reason ABC not defined for Order Type Retrun order

    Hi I am getting following " Message no. V1 899 " when i am  doing return order without refernce . Order reason is defined in customization but still we are getting the following message " Message no. V1 899 " /Order Reason E18 not defined for Order T

  • Archiving a Smart Mailbox to a RAW Message Source using Automator?

    In MAIL I can set a smart mailbox to say get emails from ("any" recipient contains [email protected]) But in Automator when I use the Filter messages in mail I can't be that broad with my selection, I can only select sender, and not ANY recipient. Be

  • Unparseable date error

    hi, i 've developed and application, in which at some point it compares dates. i have used win2k (english) version for development evn. when the qa is testing it on non english w2k, they are getting unparseable date error. =========== WARNUNG: java.t

  • Site changes after I publish it.

    Hi, I can do everything with iWeb without issues but when I publish it to a folder, the page becomes different from what I created. Why does it change after I publish it and what can I do about it? Thanks for reading my question. Hope you can help.