You are not logged in.

#1 2005-04-21 01:40:45

aikidoist72
Member
From: Australia
Registered: 2005-04-15
Posts: 63

pacman sync db

I have followed the WIKI for a local pacman cache.  I can and have updated the caches current and extra sucessfully

I have noticed that twice now I have tried to pacman -Sy (package name) and recieved this error

eg:

[10:48][root@jelb evan]# pacman -Sy lineakconfig-0.3.2-2.pkg.tar.gz
:: Synchronizing package databases...
 current                  [/home/mirror/current/os/i686/] 100%    LOCAL
 extra                    [/home/mirror/extra/os/i686/] 100%    LOCAL
lineakconfig-0.3.2-2.pkg.tar.gz: not found in sync db

I have tried just the lineakconfig and lineakconfig-0.3.2-2 etc to no avail.  Also I can see the package in the folder, but wish to work this out instaed of a manual install.

Any ideaś????

Cheers


Sitting quietly
Doing nothing
The grass grows
And the flowers bloom
All by themselves

Offline

#2 2005-04-21 03:30:43

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: pacman sync db

If you are trying to manually install a file from a local system you need to use pacman -U with the full filename, if you are trying to sync a pkg from the repo you need to use pacman -S and the package name, which is usually the bit before the version

You could also have a look at man pacman

Offline

#3 2005-04-21 05:21:59

aikidoist72
Member
From: Australia
Registered: 2005-04-15
Posts: 63

Re: pacman sync db

Thanx for the reply dibblethewrecker,

I tried your advice but to no avail.


[15:10][root@jelb evan]# pacman -U lineakconfig
loading package data... could not open package: No such file or directory

[15:10][root@jelb evan]# pacman -Uy lineakconfig
loading package data... could not open package: No such file or directory

[15:10][root@jelb evan]# pacman -U lineakconfig-0.3.2-2.pkg.tar.gz
loading package data... could not open package: No such file or directory

[15:11][root@jelb evan]# pacman -Uy lineakconfig-0.3.2-2.pkg.tar.gz
loading package data... could not open package: No such file or directory

I read the man Pacman before I posted - sorry , should have mentioned that.  -U is for upgrade, -u system upgrade.  Still no sausage!!


Sitting quietly
Doing nothing
The grass grows
And the flowers bloom
All by themselves

Offline

#4 2005-04-21 06:21:46

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

Re: pacman sync db

You need to use the full pathname:
pacman -U /path/to/lineakconfig-0.3.2-2.pkg.tar.gz

Also, the y option only work with -S.
BTW,
pacman -S lineakconfig
should also work.

Offline

#5 2005-04-21 07:20:38

aikidoist72
Member
From: Australia
Registered: 2005-04-15
Posts: 63

Re: pacman sync db

Excellent  Thankyou

[16:59][root@jelb evan]# pacman -U /home/mirror/extra/os/i686/lineakconfig-0.3.2-2.pkg.tar.gz
loading package data... done.
checking for file conflicts... done.
installing lineakconfig... done.
[17:00][root@jelb evan]#

Pacman -S lineakconfig returns

[17:00][root@jelb evan]# pacman -S lineakconfig
lineakconfig: not found in sync db

[17:03][root@jelb evan]#

I believe this has something to do with my rsync.sh file.  After following the WIKI instructions I couldn´t sync my caches.  When I executed rsync.sh via CLI my ¨current¨ folder would be replaced by a symlink to ´0.8´ which doesn´t exist, and the rsync.sh  would  fail on the ´current´ cache.  The ´extra´ cache would sync fine.  I could not figure out why, so I adjusted the appropriate files to point to the correct folders ( ie: /home/mirror/current/os/i686/)


My adjusted rsync.sh

rsync -avz --delete rsync.archlinux.org::ftp/current/os/i686/ /home/mirror/current/os/i686
rsync -avz --delete rsync.archlinux.org::ftp/extra/os/i686/  /home/mirror/extra/os/i686

I can sync now no problems, but I fear that pacman doesn´t like my setup.

Thanks again!! lol


Sitting quietly
Doing nothing
The grass grows
And the flowers bloom
All by themselves

Offline

Board footer

Powered by FluxBB