You are not logged in.

#1 2006-02-13 15:05:13

Rerven
Member
Registered: 2006-02-03
Posts: 19

Newbie wanna know how to use dowloaded pkgs.

I'm totally a newbie... this is the first time i installed archlinux, and i'm very interested in it... but i got some problems. I hope anyone can help me out ...

Due to some  unstable conditions and reasons, the speed of pacman -Sy kde /gnome is very very slow so that i cant stand it. Therefore, before the desktop environment installation i have to download all the pkgs from FTP . And next, I cp all the pkgs to /var/cache/pacman/pkg/ , and then i use pacman -Sy kde again, hoping it would work to install the desktop environment, but it still downloaded pkgs online. So how can i use the downloaded pkg sources to make it install desktop environment ??

I really dont know how to figure it out... I wish i can get help from you guys..

Thanks in advance !!

Offline

#2 2006-02-13 15:13:46

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: Newbie wanna know how to use dowloaded pkgs.

If your mirror is slow, you can change to another mirror. Check the config files in /etc/pacman.d.

About copying packages to /var/cache/pacman/pkg this should normally work. Did you copy the correct versions of the packages? Pacman only installs the files if it are the same package versions as in the pacman database. So if you copied testing repo versions, you should also enable the testing repo in pacman.conf

Offline

#3 2006-02-13 16:01:51

viniosity
Member
From: New York, NY
Registered: 2005-01-22
Posts: 404
Website

Re: Newbie wanna know how to use dowloaded pkgs.

I believe that if you want to install a pacman pkg file directly you would use:

pacman -A filename.pkg.tar.gz

man pacman will give you all the switches you need.

Offline

#4 2006-02-13 16:28:50

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: Newbie wanna know how to use dowloaded pkgs.

viniosity wrote:

I believe that if you want to install a pacman pkg file directly you would use:

pacman -A filename.pkg.tar.gz

man pacman will give you all the switches you need.

Only if the package is not in the database. If it is a package which pacman knows due to -Sy switch, the -S switch first looks in the cache if the package is already downloaded, and if so, installs from the cache

Offline

#5 2006-02-13 17:32:12

Rerven
Member
Registered: 2006-02-03
Posts: 19

Re: Newbie wanna know how to use dowloaded pkgs.

pressh wrote:

If your mirror is slow, you can change to another mirror. Check the config files in /etc/pacman.d.

About copying packages to /var/cache/pacman/pkg this should normally work. Did you copy the correct versions of the packages? Pacman only installs the files if it are the same package versions as in the pacman database. So if you copied testing repo versions, you should also enable the testing repo in pacman.conf

I did copy all the files into pkg folder. And unfortunately , the downloaded pkgs are from testing area. So how can i modify in pacman.conf if i use testing sources ?

Offline

#6 2006-02-13 17:40:46

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: Newbie wanna know how to use dowloaded pkgs.

At this as the first repository in your pacman.conf (so before [current]:

[testing]
Server = ftp://ftp.archlinux.org/testing/os/i686

Offline

#7 2006-02-13 17:42:23

Rerven
Member
Registered: 2006-02-03
Posts: 19

Re: Newbie wanna know how to use dowloaded pkgs.

pressh wrote:

At this as the first repository in your pacman.conf (so before [current]:

[testing]
Server = ftp://ftp.archlinux.org/testing/os/i686

alright... i got it... i'll try later... thanks.

Offline

#8 2006-02-14 15:38:50

Rerven
Member
Registered: 2006-02-03
Posts: 19

Re: Newbie wanna know how to use dowloaded pkgs.

i did change pacman.conf, there is no information about  testing pkg address in pacman.d. So I tried to add new address but it didnt work. I cant do anything. As i typed pacman -Sy kde, it update sources and downloaded pkgs from extra, it arranged from tesing, current to extra. So what can i do to make it work? Which way can i do to make it update information from testing folder from FTP and not download from extra, so make it install desktop environment from /var/cache/pacman/pkg/ which I downloaded previously ?

Offline

#9 2006-02-15 00:59:26

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Newbie wanna know how to use dowloaded pkgs.

the  testing repo doesn't have a mirror list in /etc/pacman.d like the other repo. It use packages from ftp://ftp.archlinux.org/testing/os/i686.  Download the packages from that server and put them in /var/cache/pacman/pkg/. If it still doesn't work, post your pacman.conf.

Offline

#10 2006-02-15 12:39:18

Rerven
Member
Registered: 2006-02-03
Posts: 19

Re: Newbie wanna know how to use dowloaded pkgs.

Snowman wrote:

the  testing repo doesn't have a mirror list in /etc/pacman.d like the other repo. It use packages from ftp://ftp.archlinux.org/testing/os/i686.  Download the packages from that server and put them in /var/cache/pacman/pkg/. If it still doesn't work, post your pacman.conf.

Here is the pacman.conf listed below:

#
# /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]
#Add your preferred servers here, they will be used first
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

Offline

#11 2006-02-15 20:50:03

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Newbie wanna know how to use dowloaded pkgs.

Your pacman.conf looks OK.  When you say that it tries to download pkg from extra, are they kde* packages or other ones? Not all packages goes into testing. It is very possible that KDE in testing depends on packages in current/extra. In that case,  proceed with the upgrade.  pacman will use the kde packages you have put in /var/cache/pacman/pkg and download the required dependencies.

Offline

#12 2006-02-16 04:32:09

Rerven
Member
Registered: 2006-02-03
Posts: 19

Re: Newbie wanna know how to use dowloaded pkgs.

Can i # in front of current/ extra, so make it download pkg from testing folder ? Is it possible or necessary?

Offline

#13 2006-02-16 04:57:33

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: Newbie wanna know how to use dowloaded pkgs.

KDE depends on packages located in current/extra too, and no u dont have to comment anything, pacman will take the package located at the repo loacted above the other, i mean for example udev exists in testing and current, pacman install from testing because it comes first ..

Offline

#14 2006-02-16 13:43:18

Rerven
Member
Registered: 2006-02-03
Posts: 19

Re: Newbie wanna know how to use dowloaded pkgs.

Or is there any way i can prevent downloading pkg from extra but using pkg in pkg folder ?

Offline

#15 2006-02-16 13:54:52

jaboua
Member
Registered: 2005-11-05
Posts: 634

Re: Newbie wanna know how to use dowloaded pkgs.

Rerven wrote:

Or is there any way i can prevent downloading pkg from extra but using pkg in pkg folder ?

Have you tried:

pacman -A /var/cache/pacman/pkg/*

EDIT: It may cause some trouble if you have multiple versions of the same pkg in there, so do a "pacman -Sc" first.

Offline

#16 2006-02-16 16:31:50

Rerven
Member
Registered: 2006-02-03
Posts: 19

Re: Newbie wanna know how to use dowloaded pkgs.

of course... i tried.... it still dowmloaded pkg s from extra, maybe i should try to download pkgs from extra but not from testing previously.

Offline

#17 2006-02-16 16:37:55

Rerven
Member
Registered: 2006-02-03
Posts: 19

Re: Newbie wanna know how to use dowloaded pkgs.

So who can tell me the detailed pkgs gnome / kde needs? I dont want to get other unimportant pkgs, so i can try. include dependencies among pkgs.

Offline

#18 2006-02-16 16:42:21

jaboua
Member
Registered: 2005-11-05
Posts: 634

Re: Newbie wanna know how to use dowloaded pkgs.

Rerven wrote:

of course... i tried.... it still dowmloaded pkg s from extra, maybe i should try to download pkgs from extra but not from testing previously.

"pacman -S" would download, but pacman -A shouldn't download anything! Can you post the output from console (including the pacman command you ran) please?

Offline

Board footer

Powered by FluxBB