You are not logged in.
Pages: 1
Topic closed
I have already got a Linux system. I wanna install Archlinux for a dual/backup Linux system. I tried bootable disk, but found the the mountpoint will eraser/recreate data.
so I decided install through my current linux. I followed this wiki : http://wiki.archlinux.org/index.php/Ins … ting_Linux , but i stuck at pacman-static-*.pkg.tar.gz, seems there is no this package on the server.
Could someone please tell where can get this package?
thanks a lot in adv.
Cheers
Offline
There is no official pacman-static and so you are limited to third party repos. I think the archlinuxfr one was the only repo providing this and if it has stopped...
Offline
Why isn't there an official pacman-static package?
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
In the AUR repo: link
Offline
Mar 17 17:04:41 <tuxce> I saw you talk about pacman-static, I forgot to delete from repo, cause I don't use it anymore, I prefer to use a little chroot archive with just the last pacman and the libs it depends on
Mar 17 17:05:18 <wonder> ok, maybe you want to modify the wiki too
Mar 17 17:06:50 <tuxce> which one ? (I didn't know of a wiki page talking about pacman-static)
Mar 17 17:07:18 <wonder> http://wiki.archlinux.org/index.php/Ins … ting_Linux
Mar 17 17:09:06 <tuxce> ok, I will do that
he was the maintainer of pacman-static from archlinuxfr repo. it became obsolete and useless after we merged to .xz since it can't handle them.
Give what you have. To someone, it may be better than you dare to think.
Offline
It should be able to handle them.... xz-utils was built with a static library months ago to allow that.
Offline
It should be able to handle them.... xz-utils was built with a static library months ago to allow that.
yes, but the current build couldn't handle and i believe he didn't wanted to maintain it anymore and drop it, instead of providing the support.
Give what you have. To someone, it may be better than you dare to think.
Offline
Why isn't there an official pacman-static package?
It was never that static and it really was not that useful... e.g. "pacman -Rd glibc" and try using pacman-static to recover. (I actually tried that.) So it was decided it could be maintained in a separate package if the community wanted it.
Offline
thanks a lot guys, for all your prompt replies. if without pacman-static then how could get Archlinux installed easily through another?
cheers
Offline
I'm also interested in this, though in my case, I want to do it from a liveCD. The official Arch install media is too outdated to work on my machine. (And trying to use it actually breaks my NIC (Atheros AR8131) until I do a system recovery with the manufacturer CDs for some reason)
Last edited by Hamsterkill (2010-03-22 14:39:29)
Offline
Hi,
i had this problem, too. I need a way to install arch from an rescue system (debian 5.0). So i wrote a little script to bring pacman on it.
#!/bin/bash
#README {{{
# author......: Lucky <archlinux.org@lucky.take0ver.net>
# filename....: getpac.sh
# description.: get/install pacman on your system
# version.....: 1.0.4
#}}}
#CONFIG {{{
arch="$(uname -m)" #i686 or x86_64
mirror="ftp://mirrors.kernel.org/archlinux"
#}}}
#CHECK {{{
if [ "$(id -u)" -ne "0" ]; then
echo "This script should be run as root."
exit 1
fi
if [ "${arch}" = "x86_64" ]; then
echo "${arch} detected"
elif [ "${arch}" = "i686" ]; then
echo "${arch} detected"
else
echo "${arch} not supported"
echo "set arch manualy on config part"
exit 1
fi
#}}}
#DIRS_AND_INDEX {{{
scriptdir="$(pwd)"
tempdir="$(mktemp -d -t getpac-XXXXXXXX)"
cd "${tempdir}"
link="${mirror}/core/os/${arch}"
wget -q "${link}/"
#}}}
#PACKAGE_LIST {{{
#pacman-3.3.3-1-x86_64.pkg.tar.gz
pacman_pkg="$(grep pacman-[0-9].[0-9] index.html | perl -ne 'print "$1\n" if />(.*?tar.gz)/;' | tail -1)"
#pacman-mirrorlist-20100131-1-x86_64.pkg.tar.gz
pacmanmirror_pkg="$(grep pacman-mirror index.html | perl -ne 'print "$1\n" if />(.*?tar.gz)/;' | tail -1)"
#acl-2.2.48-1-x86_64.pkg.tar.gz
acl_pkg="$(grep acl-[0-9].[0-9] index.html | perl -ne 'print "$1\n" if />(.*?tar.gz)/;' | tail -1)"
#attr-2.4.44-1-x86_64.pkg.tar.gz
attr_pkg="$(grep attr-[0-9].[0-9] index.html | perl -ne 'print "$1\n" if />(.*?tar.gz)/;' | tail -1)"
#libarchive-2.7.1-1-x86_64.pkg.tar.gz
libarchive_pkg="$(grep libarchive-[0-9].[0-9] index.html | perl -ne 'print "$1\n" if />(.*?tar.gz)/;' | tail -1)"
#libfetch-2.26-1-x86_64.pkg.tar.gz
libfetch_pkg="$(grep libfetch-[0-9].[0-9] index.html | perl -ne 'print "$1\n" if />(.*?tar.gz)/;' | tail -1)"
#expat-2.0.1-5-i686.pkg.tar.gz
expat_pkg="$(grep expat-[0-9].[0-9] index.html | perl -ne 'print "$1\n" if />(.*?tar.gz)/;' | tail -1)"
#openssl-1.0.0-2-i686.pkg.tar.gz
openssl_pkg="$(grep openssl-[0-9].[0-9] index.html | perl -ne 'print "$1\n" if />(.*?tar.gz)/;' | tail -1)"
#xz-4.999.9beta-3-x86_64.pkg.tar.gz
xz_pkg="$(grep xz-[0-9].[0-9] index.html | perl -ne 'print "$1\n" if />(.*?tar.gz)/;' | tail -1)"
#}}}
#GET_PACKAGES {{{
pkgs="${pacman_pkg} ${pacmanmirror_pkg} ${acl_pkg} ${attr_pkg} ${libarchive_pkg} ${libfetch_pkg} ${expat_pkg} ${openssl_pkg} ${xz_pkg}"
for pkg in ${pkgs}; do
echo "${pkg}"
wget -q "${link}/${pkg}"
done
#}}}
#EXTRACT_PACKAGES {{{
for pkg in *.tar.gz; do
tar xvzf "${pkg}" -C /;
done
#}}}
#ADD_MIRROR {{{
(tmpfile="$(mktemp)" && { echo "Server = ${mirror}/"'$repo'"/os/${arch}" | cat - "/etc/pacman.d/mirrorlist" > ${tmpfile} && mv ${tmpfile} "/etc/pacman.d/mirrorlist"; } )
#}}}
#SYNC_PACMAN {{{
echo "" && \
pacman -Sy && \
echo "" && \
echo "\o/ pacman is ready now \o/"
cd "${scriptdir}"
#}}}
1.0.1 fix the missing openssl lib
1.0.2 fix renamed xz pkg
1.0.3 automatic detected $arch / change coding style
1.0.4 fix the missing expat lib / change coding style (dash compatible) / temp dir now mktemp based / on error no "\o/ pacman is ready now \o/" message
have fun and thanx for using this script
Last edited by Lucky (2010-07-26 05:35:23)
Offline
Does elf statifier (http://aur.archlinux.org/packages.php?ID=7732) work on pacman?
Offline
@Lucky - tried your script and got this running on Ubuntu 9.10 host system needing to install arch i686:
pacman: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
\o/ pacman is ready now \o/
I found that you'll need to the openssl package to your script! I linked this thread on the wiki so please edit your post with the script to include it.
http://wiki.archlinux.org/index.php/Ins … ting_Linux
Last edited by graysky (2010-05-15 15:46:49)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Online
@Lucky
I tried but it was not working in Linux Mint x86_64:
tu@Pro4515s ~/archlinux $ sh getpac.download
getpac.download: 17: [[: not found
getpac.download: 27: [[: not found
getpac.download: 27: [[: not found
x86_64 not supported
set arch manualy on config part
Pro4515s archlinux # sh getpac.sh
getpac.sh: 17: [[: not found
getpac.sh: 27: [[: not found
getpac.sh: 27: [[: not found
x86_64 not supported
set arch manualy on config part
thanks a lot in adv.
Last edited by tutroc77 (2010-06-30 12:10:59)
Offline
Hi,
the output of "uname -m" is "x86_64" right? I don't know why isn't working. Maybe you don't use bash? (sh is not linked to bash)
run script: "./getpac.sh" or "bash getpac.sh"
If the $arch detection is not working set it manualy to:
arch="x86_64"
//Edit
Mint = Ubuntu based distro, Ubuntu use dash als /bin/sh replacement so sh getpach.sh will not work, because its an bash script.
./getpac.sh or bash getpac.sh works fine for me on Ubuntu 10.04 x86_64.
please give feedback
Last edited by Lucky (2010-06-30 12:48:04)
Offline
This also works for ArchPPC with some minor tweaks for thanks for this
Offline
Hi!
In Fedora 13 I encountered the following errormessage:
pacman: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory
To resolve it I linked libbz2.so.1.0 to /lib/libbz2.so.1
So long,
zip1100
Offline
Thought it was best to post in here considering I've found the link following the guide from here
@Lucky
Thank you very much for the script - pacman is working beautifully, and I've chrooted and built a initcpio image.
Host: Ubuntu x86_64
The drive is IDE/PATA with USB attachment. Current partitions (viewed from within my Ubuntu install) are as follows:
[Primary]
/dev/sdb1 /
[Extended/Logical]
/dev/sdb5 /swap
/dev/sdb6 /home
I ran
# grub-install /dev/sdb1 (do not have separate /boot, so onto /)
Here is my menu.lst. Here is my /etc/mkinitcpio.conf of which I have added PATA and USB to my "HOOKS="
All I am getting now is a blinking _ when trying to boot the drive. I don't if Grub is the problem or something else.
Offline
A shot in the dark here but doesn't the kernel and initrd parameters still require the /boot/ path even if there is not a separate boot partition?
http://oss.sgi.com/LDP/HOWTO/Kernel-HOWTO/grubconf.html
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,8)
# kernel /boot/vmlinuz-version ro root=/dev/hda9
# initrd /boot/initrd-version.img
Offline
I'm having a problem with getpac.sh.
./getpac.sh: /tmp/archlinux/usr/bin/pacman: /lib/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory
How can I fix this problem?
x86_64 detected
pacman-3.5.2-1-x86_64.pkg.tar.gz
pacman-mirrorlist-20110324-1-any.pkg.tar.gz
libarchive-2.8.4-2-x86_64.pkg.tar.gz
libfetch-2.33-3-x86_64.pkg.tar.gz
openssl-1.0.0.d-1-x86_64.pkg.tar.gz
xz-5.0.3-1-x86_64.pkg.tar.gz
.PKGINFO
usr/
usr/include/
usr/bin/
usr/lib/
usr/share/
usr/share/man/
usr/share/licenses/
usr/share/licenses/libarchive/
usr/share/licenses/libarchive/COPYING
usr/share/man/man5/
usr/share/man/man3/
usr/share/man/man1/
usr/share/man/man1/bsdtar.1.gz
usr/share/man/man1/bsdcpio.1.gz
...
...
...
...
...
usr/share/man/man1/xz.1.gz
usr/share/man/man1/xzgrep.1.gz
usr/share/man/man1/lzmore.1.gz
usr/share/man/man1/lzgrep.1.gz
usr/share/man/man1/unlzma.1.gz
usr/share/man/man1/lzless.1.gz
usr/share/man/man1/xzless.1.gz
usr/share/man/man1/lzcmp.1.gz
usr/share/man/man1/lzcat.1.gz
usr/share/man/man1/xzcmp.1.gz
usr/share/man/man1/xzdec.1.gz
usr/share/man/man1/xzdiff.1.gz
usr/share/man/man1/lzdiff.1.gz
usr/share/man/man1/xzfgrep.1.gz
usr/share/man/man1/lzmadec.1.gz
usr/share/man/man1/lzmainfo.1.gz
usr/share/man/man1/unxz.1.gz
usr/share/man/man1/lzegrep.1.gz
usr/share/man/man1/lzfgrep.1.gz
usr/share/man/man1/xzegrep.1.gz
usr/share/man/man1/xzcat.1.gz
./getpac.sh: /tmp/archlinux/usr/bin/pacman: /lib/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory
Offline
Ztjuh: please don't necrobump https://wiki.archlinux.org/index.php/Fo … Bumping.27
Open a new thread about your issue.
Closing
Offline
Pages: 1
Topic closed