LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices

Reply
 
Search this Thread
Old 05-22-2010, 12:54 PM   #1
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
Building a Custom repo... pacman -S fails to sync


Hi Forum

I have installed Arch in an external USB HDD

/dev/sdb1 -> /boot
/dev/sdb2 -> /
/dev/sdb3 -> swap
/dev/sdb4 -/mount/Arch_repo

in Arch_repo I have a snapshot of [community], [core] and [extra];
I have configured [community], [core] and [extra] in pacman.conf so as to point to the proper locations in the folders.


I also have a /mount/My_repo
in My_repo I dump all packages I built from AUR, and enabled [custom] in pacman.conf to point to that place.

Yet when I run pacman -Syu ( academic example, since my Arch_repo is static ) pacman complaints it cannot find custom.db.tar.gz.

Good point... it does not exist... ... so pacman does not know the contents of [custom] and whatever i dump there; I have compared to community.db.tar.gz, and found out this gzip is a whole set of folders with the names of packages containing each one the package manifest and the dependences list.

Is there any tool to build this for a custom repo, or must I create this by hand...?

My question is of particular importance since I am thinking about using a tool that checks the the existing packages in the system ( pacman -Q ) and then uses them to build a live Image of that system, ArchISO; if these packages cannot be "seen" inside some repo ( missing custom.db.tar.gz ) their inclusion in my live image is very likely not to occur...

And lots of packages I want to include in my Live contraption are in [custom]... so how do i fix this thing....??

I mean... for ArchISO to work, and include packages from a repo, the tar.gz of that repo's database must exist... is there some way I can create this for [custom]...?

BRGDS

Alex

Last edited by Alexvader; 05-22-2010 at 12:57 PM.
 
Old 05-23-2010, 09:35 PM   #2
mac.tieu
Member
 
Registered: Jan 2010
Location: Vietnam
Distribution: Arch
Posts: 65

Rep: Reputation: 22
Reference:
Custom local repository

MT
 
Old 05-24-2010, 09:21 AM   #3
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Code:
# repo-add /path/to/repo/custom.db.tar.gz /path/to/repo/*.{gz,xz}
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
yum grouplist setup on custom repo rowanu Linux - Software 2 07-15-2008 05:02 AM
Yum Fails Error Cannot find a valid baseurl for repo pete44904 Linux - General 2 10-24-2006 04:52 PM
pacman; can't even "--sync --refresh" fatblueduck Arch 7 06-05-2005 03:45 AM
after building a custom kernel h/w Debian 5 08-21-2003 10:13 PM
Building a custom kernel eastj1974 Linux - Newbie 7 07-01-2003 12:59 AM


All times are GMT -5. The time now is 01:42 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration