How to install packages from local folder

Hi all,
I have downloaded all arch linux packages from the following URLs:
ftp://mirrors.kernel.org/archlinux/core/os/i686/
ftp://mirrors.kernel.org/archlinux/extra/os/i686/
ftp://mirrors.kernel.org/archlinux/community/os/i686/
and then have saved them to an external hard disk. Then I have attached that external hard disk to my system and packages are available in following folders:
/mnt/external_hd/Arch_Linux/Core-OS/
/mnt/external_hd/Arch_Linux/Extra-OS-1/
/mnt/external_hd/Arch_Linux/Extra-OS-2/
/mnt/external_hd/Arch_Linux/Community-OS-1/
/mnt/external_hd/Arch_Linux/Community-OS-2/
/mnt/external_hd/Arch_Linux/Community-OS-3/
Now I want to install some or all packages from these folder with the help of pacman command. I am seeing that package corresponding to wvdial command is available in the /mnt/external_hd/Arch_Linux/Extra-OS-1/ folder. But how to use pacman command so that I can install wvdial package from that folder?
In addition to this if I want to install ALL Extra Packages available in the folders /mnt/external_hd/Arch_Linux/Extra-OS-1/ and /mnt/external_hd/Arch_Linux/Extra-OS-2/ then how to execute the pacman command?
Please send me step by step instructions so that I shall be able to install some or all downloaded packages.
I shall remain thankful for this forever.
Best Regards ...
Pankaj Kumar

Hi fukawi2,
Thanks for reply and searching for my username on google. It is true that I am a freelance s/w developer but I am not installing Arch Linux for any client. I am installing it due to some other reasons. In fact I started working on Red Hat and then on Fedora when I was a student of bachelor degree course in computer applications. Then later I searched open suse and started using it. I am using open suse from its 10.1 version. However the recent version of this distribution has become much resource consuming. So I am in the need of a light weight linux distribution. And I encountered Arch Linux. Then I purchased its installation disk from an online shop and installed it on my system. But only text mode is working at this moment. Since I want to use X window and so I started to follow the syntax of pacman command. But it is connecting to internet. Since my internet connection is slow (average speed of 10kbps) and so I requested the same online shop to download all packages from Arch Linux repository and send them to me. Therefore now I am having all those packages in my local external hard disk drive in the folder mentioned in my first post. Now I want to install packages from these folder. And so in order to get help I have come to this forum.
I have also followed the steps given on the pages https://wiki.archlinux.org/index.php/Pa … l_commands and https://wiki.archlinux.org/index.php/Pa … repository. But when I am trying to install a particular package using the following command:
pacman -U wvdial
then it is asking for a dependency. I know that  the dependent package in my local folder but why it is not being automatically taken by pacman command? Can you please explain it.
That is why I am asking help only for customization and usages of pacman in order to install packages from local folder. But each member in this forum is only referring to long written manuals and not giving me exact solution which I think will involve four/five steps.
Best Regards ...
Pankaj Kumar

Similar Messages

  • How to make a ARCH package from local folder?

    hello ARCH lovers
    I can't seem to figure out how to make a installable
    package from a folder on my desktop?
    Coming from Slackware; the procedure would be simple enough just issuing
    "makepkg /root/pkgname.txz"
    Now; how would I do the same in ARCH?
    I know about PKGBUILD, etc but there is no source or any url's
    I just need to make it into a .pkg.tar.xz
    The package is my "kernel-live-kit" for both x86 and x86_64 versions of arch
    enabling one to remaster there existing install into a livecd/usb, etc
    The kernel itself is kernel26-zen from AUR
    http://aur.archlinux.org/packages.php?ID=30330
    however; mine is quite different and also includes all components to make the livecd using modified linux-live-6.3.0
    scripts and special stuff
    The pkg includes a premade kernel with modules and full kernel source
    The resulting live media is similar to my nFluxOS builds
    http://multidistro.com/
    As I will be releasing the new four horsemen of nFluxOS today; I also made 4 Kernel pkg's for the arch and slack versions
    Those will be for x86/x86_64 versions for both arch and slackware
    I did this in lieu of creating a quartet of x86_64 versions of nFluxOS; as that would up the number of versions to 8
    and I would then have to maintain 8 distro's instead of 4.
    I made a testing version of ARCH x86_64 live
    http://www.linuxquestions.org/questions … ost4017796
    so, I really need to make the ARCH x86 and x86_64 kernel kits into installable pkg's because there are many symlinks that would get corrupted if I just tarred it and then the end user untars it and copies it somewhere it would mess up the symlinks.
    as I said, in slackware I do makepkg and it creates a script named "doinst.sh" that makes all the symlinks, etc
    so, any help appreciated!
    thanks

    You can read a simple introduction to using the ABS here.
    By the way, it's not hard. Out of all the distributions I've used, Arch Linux is the only one I've figured out how to make packages for.

  • How to install packages from removable media?

    I'm pretty damn sure that i missed some wiki page, but i cannot find it, how do i install packages without an internet connection. I installed on one of my computers, then realized i needed to install the wireless drivers after the install, which i cannot. I can ofcourse reinstall, but i believe there must be a possibility to make pacman install a bunch of packages from USB or a cd. I do have internet at my other computer, so i can download the packages there onto a usb-stick.

    Hi,
    you should try
    pacman -U /path/to/package.pkg.tar.gz
    I haven't tried this but that's the way one would manually install a package build with PKGBUILD and "made" with makepkg.
    Hope that helps.

  • Newbie: How to install packages from remote desktop?

    Hi,
    I have installed Solaris using Reduced Network without installing Volume Management. Now, I want to add more packages. I have tried to copy e.g. SUNWmfrun directory from my Windows XP desktop and SFTP/SSH to the remote Solaris server. Maybe because it is not a pkg but a directory; therefore, pkgadd cannot find a package to install. And I fail to use pkgtrans because lack of knowledge. What steps should I do?
    Regards,
    Terence

    It should be something like
    [local]
    Server = file:///path/to/packages

  • Can't install packages from local repository created with repo-add

    I did the following
    repo-add /mnt/packages/repo.db.tar.gz /var/cache/pacman/pkg/*
    cp /var/cache/pacman/pkg/* /mnt/packages
    on one computer
    connected the hard drive to another computer and did the following:
    added the pacman.conf configurations as follows
    [repo]
    SigLevel = PackageRequired
    Server = file:///mnt/packages
    then ran
    pacman -Sy
    which worked.
    and then I tried to install a package using pacman -S.but all the packages give me :
    error: packagename: missing required signature,File:///var/cache/pacman/pkg/packagename is corrupted(invalid or corrupted package(PGP Signature))
    then i tried:
    pacman-key --init
    pacman-key --populate archlinux
    pacman -Syy
    which didn't work and made no difference.what can I do?

    anatolik wrote:
    One thing that comes to my mind is that repo directories have *.sig files next to the packages, see file structure here http://mirrors.kernel.org/archlinux/testing/os/x86_64/
    But cache directory /var/cache/pacman/pkg/ does not have these sign files and it is why pacman complains. Where to find the sign files locally? I do not know the recommended way, but I see that /var/lib/pacman/sync/$REPO.db contains signature information, so you can write a script that extracts it.
    Or you can use `repo-add --sign` and sign packages with your key, but it is not very secure.
    PS Instead of using repo-add you might want just use repo files from /var/lib/pacman/sync/
    I will try the above and report.
    but it shouldn't be necessary according to https://wiki.archlinux.org/index.php/Pacman_tips

  • Pacman: install package from local disk withou database refresh

    Basically what it says in the title.
    I've just installed Arch on a notebook that doesn't have a working ethernet jack. To get wifi working I need wpa-supplicant, so I downloaded the package using another machine. When I try to install it with pacman -U wpa-supplicant.pkg.tar.xz, pacman complains it doesn't have a database (which is probably right since I f*cked up /var), and without a network connection I can't do a pacman -Syu.
    Can I force pacman to do the install, or do I have to install wpa-supplicant manually?

    There is not point in rebuilding the wpa_supplicant.  If you are going to manually install it and you have the built package, just manually install the prebuild binary you already have.
    I am not sure if manually installing is the best approach, but if it is just unpack the package, then copy the files to the appropriate place in the root directory.
    When you get up and running, you will need to delete these and install wpa_supplicant via pacman - or you you could use --force for this one single package: pacman --force -S wpa_supplicant in order to overwrite the existing conflicting files.
    I suspect there is a better means to regenerate a simple starter database.  You can download the sync databases from your mirror manually.
    Last edited by Trilby (2014-10-14 14:31:10)

  • Script to rebuild all installed packages from ABS

    I realize pacbuilder is for that, but it doesn't seem to work properly for me. Skipping a lot of packages etc.
    Anyway, I've made this very simple script to just rebuild every installed package from core/extra/community. Sorry for the localized echo output, but I think it's all very simple and straightforward to understand.
    Edit:
    I've improved it a bit, now it should work flawlessly and remember what stuff it has to finish no matter when you ^C out of it. Also it installs all compiled packages, if you want to avoid that, remove -i switch from makepkg.
    #!/bin/sh
    # user configuration
    absdir="/home/mateusz/abs/autobuild"
    pkgdir="/home/mateusz/abs/packages"
    pkgfile="/home/mateusz/abs/autobuild.list"
    # end of user configuration
    topabs="/var/abs"
    if [ ! -d $absdir ]; then
    mkdir -pv $absdir
    fi
    if [ ! -d $pkgdir ]; then
    mkdir -pv $pkgdir
    fi
    echo "(autobuild) Uaktualnianie bazy abs..."
    sudo abs
    if [ ! -f $pkgfile ]; then
    echo "(autobuild) Tworzę listę pakietów do zbudowania..."
    pacman -Qq > $pkgfile
    else
    echo "(autobuild) Znaleziono poprzedni build."
    echo "(autobuild) Jeżeli nie chcesz go wykorzystać, skasuj $pkgfile"
    fi
    for pkgname in $(cat $pkgfile); do
    echo "(autobuild) Szukanie pakietu $pkgname..."
    find $topabs -type d -name "$pkgname" -exec cp -R {} $absdir \; 2> /dev/null
    if [ -d "$absdir/$pkgname" ]; then
    echo "(autobuild) Budowanie pakietu $pkgname..."
    cd "$absdir/$pkgname"
    makepkg -csir --noconfirm > /dev/null
    if [ $? -eq 0 ]; then
    echo "(autobuild) Pakiet zbudowany."
    cat $pkgfile | grep -vx $pkgname > "$pkgfile.tmp"
    mv $pkgfile.tmp $pkgfile
    else
    echo "(autobuild) Błąd budowania pakietu!"
    fi
    else
    echo "(autobuild) Pakiet nieodnaleziony!"
    cat $pkgfile | grep -vx $pkgname > "$pkgfile.tmp"
    mv $pkgfile.tmp $pkgfile
    fi
    done
    echo "(autobuild) Linkowanie pakietów do $pkgdir..."
    find $absdir -name "*`uname -m`.pkg.tar.gz" -exec ln -v {} $pkgdir \; >/dev/null
    echo "(autobuild) Zakończono."
    exit 0
    Last edited by xaff (2009-05-03 13:47:17)

    Here is the script translated into English (with a bit of help from Google Translate, as well as grammar cleanup).
    #!/bin/sh
    # user configuration
    absdir="/home/aabbott/abs/autobuild"
    pkgdir="/home/aabbott/abs/packages"
    pkgfile="/home/aabbott/abs/autobuild.list"
    # end of user configuration
    topabs="/var/abs"
    if [ ! -d $absdir ]; then
    mkdir -pv $absdir
    fi
    if [ ! -d $pkgdir ]; then
    mkdir -pv $pkgdir
    fi
    echo "(autobuild) Updating the ABS database..."
    sudo abs
    if [ ! -f $pkgfile ]; then
    echo "(autobuild) Creating a list of packages to build..."
    pacman -Qq > $pkgfile
    else
    echo "(autobuild) Found a previous build."
    echo "(autobuild) If you don't want to use this build, delete ${pkgfile}."
    fi
    for pkgname in $(cat $pkgfile); do
    echo "(autobuild) Searching for $pkgname..."
    find $topabs -type d -name "$pkgname" -exec cp -R {} $absdir \; 2> /dev/null
    if [ -d "$absdir/$pkgname" ]; then
    echo "(autobuild) Building $pkgname..."
    cd "$absdir/$pkgname"
    makepkg -csir --noconfirm > /dev/null
    if [ $? -eq 0 ]; then
    echo "(autobuild) $pkgname built."
    cat $pkgfile | grep -vx $pkgname > "$pkgfile.tmp"
    mv $pkgfile.tmp $pkgfile
    else
    echo "(autobuild) There was an error when building ${pkgname}!"
    fi
    else
    echo "(autobuild) $pkgname not found!"
    cat $pkgfile | grep -vx $pkgname > "$pkgfile.tmp"
    mv $pkgfile.tmp $pkgfile
    fi
    done
    echo "(autobuild) Linking to $pkgdir..."
    find $absdir -name "*`uname -m`.pkg.tar.gz" -exec ln -v {} $pkgdir \; >/dev/null
    echo "(autobuild) Finished."
    exit 0

  • HT3546 I can't figure out how to install bonjour from the CD that came with my airport express.  Can anyone help?

    I can't figure out how to install bonjour from the CD that came with my airport.  Can anyone help?

    If you are having difficulties installing Bonjour from the Installation CD, you can download the latest version of Bonjour from here.

  • How to import photos from a folder that contains hundreds of folders to Photos keeping the same folder structure?

    How to import photos from a folder that contains hundreds of folders to Photos keeping the same folder structure?

    You'll have to do that manually, i.e. export each album of photos to a folder with the same name located on your hard drive via  the File ➙ Export ➙ File Export menu option.
    OT

  • How to install leopard from a DMG file instead of DVD

    How to install leopard from a DMG file instead of DVD, When i open this file, click restart, NOTHING happened!!!!!!

    Use Disk Utility to restore the DMG to a blank partition, then use the Startup Disk preferences pane to reboot from that partition. Why not just install from the DVD, though?

  • How to install data from an external sd card onto my tablet (a5500-f)

    how to install data from an external sd card onto mt tablet (A5500-F).

    Choose Computer from the Finder's Go menu, double-click the drive, and drag your documents back.
    (111169)

  • How to install software from imac to macbook pro

    how to install software from imac to macbook pro

    Are you using one of the newer iMac's with no DVD drive? If so, you can either get an external CD/DVD drive (any make - doesn't have to be Apple) or, if you have another Mac on the same network that has a CD/DVD drive you may be able to do it by turning on 'DVD or CD Sharing' on that Mac (System Preferences>Sharing). Hopefully you'll see the disk on the Mac without the DVD drive and be able to install from there.

  • How to install software from disk onto imac

    how to install software from disk onto imac

    Are you using one of the newer iMac's with no DVD drive? If so, you can either get an external CD/DVD drive (any make - doesn't have to be Apple) or, if you have another Mac on the same network that has a CD/DVD drive you may be able to do it by turning on 'DVD or CD Sharing' on that Mac (System Preferences>Sharing). Hopefully you'll see the disk on the Mac without the DVD drive and be able to install from there.

  • How do install  program from external drive to mac book air

    how do install  program from external drive to mac book air

    DVD or CD sharing: Using Remote Disc - Apple Support

  • How do install Leopard from intel to ppc by Firewire?

    Can anyone tell me how to install Leopard from my intel macbook to my older ppc? When I try to install from firewire it says that the drive is going to GUID and non-bootable. My DVD drive on the PPC isn't good enough for the Leopard DVD. Any suggestions are appreciated.

    I'm not commenting on whether the type of Mac is compatible with the Leopard install.
    I'll offer suggestion for the firewire install. The objective is to take the Leopard DVD and transfer in some way to a firewire drive to be able to boot a PPC Mac and complete a Leopard install to the PPC Mac.
    How? Take a firewire external drive and partition it in two. One for your data and the other (7.2 gigs) max, for the ability to restore the Leopard DVD to that smaller partition. Once restored you'll be able to boot(using system startup control panel) and install Leopard to a PPC Mac.
    The rule to follow is to use APM ie Apple Partition Map to boot PPC Macs. GUID mapping is for intel Macs. You use options within Disk Utility ti select which way to go. You cannot have both on one firewire hard drive. I use two firewire hard drives: one APM and the other GUID.
    How to setup the small partition? Connect firewire drive to your PPC Mac. Open disk utility. Create your two partitions(remember when you do this the drive is formatted and all data is gone, so backup first). Remember to use option and select APM, although on a PPC Mac it should be by default and ditto if on an intel Mac for GUID. Once the partitioning is complete, select Restore and while using the left hand column(just read the instruction in the disk utility window) and assuming you now have the Leopard DVD on the desktop , drag the install OSX section from the left hand column to "source" and then drag the Leopard small partition from the left hand column to "destination." Wait 20 minutes and you are completed. Now you can boot from the firewire drive and install Leopard to a PPC Mac.

Maybe you are looking for

  • Error message when importing video

    Hi, I receive the following error message when trying to import .flv file in Captivate 6: I tried restarting the project several times, as well as creating new flash file, with no luck. This is only a 3-slide project with the video embedded on a slid

  • Basic question, how to create rtf template with a given xml file

    Hello guys I am new to BI publisher and I am learning how to create rtf templates using given xml fiel definitions by following the bi publisher guide The steps I am following is: 1, create template using template builders, which is downloaded into M

  • IPad Disabled from Kids...Not showing amount of time remaining

    So, I usually use a passcode to prevent my kids from having unauthorized access to my iPad. In the past, if they entered the wrong code, it would say, "iPad disabled for 1 minute" or whatever...and that time would go up each time they entered a wrong

  • HTTP-404 \napex: PROCEDURE DOESN'T EXIST

    Hi, I have installed Oracle Application Express 3.1.2 and unable to access the admin apex page. 404, page Not Found error message. In the Apache log file, the error is mod_plsql: /pls/apex/apex HTTP-404 \napex: PROCEDURE DOESN'T EXIST\n The http serv

  • Search for Main Group Not all Subgroup

    Search for Main Group Not all Subgroup My illustrator project may have 5 main groups, which may all included 100 subgroups. I would like to search for main group without having to search through all subgroup, because too many and too long for the scr