How is the PACKAGES.TXT file made?

Introduce yourself, create test postings or talk nonsense.
Post Reply
daemonspud
Posts: 4
Joined: 07 Apr 2022 20:09

How is the PACKAGES.TXT file made?

Post by daemonspud »

Specifically, do you use .DEP files to generate it, or is it by hand?
djemos
Site Admin
Posts: 696
Joined: 15 Apr 2016 06:03

Re: How is the PACKAGES.TXT file made?

Post by djemos »

daemonspud wrote:Specifically, do you use .DEP files to generate it, or is it by hand?
Yes, dep file is used if it is exist.
This script is used. I run it everytime i add or update or remove a package from repository.
You have to enter in the directory where the script exists (the root of the repository) and run from there.
Also the directories appeared in the script have to exist in the repository with txz and dep files inside them at least.
Then type

Code: Select all

sh .metagen.sh asc (produce signature of files)
sh .metagen.sh md5 (produce md5 and checksum files)
sh .metagen.sh all  (produce meta, rss and PACKAGES.TXT)
sh .metagen.sh filelist (produce FILELIST.TXT)
type sh .metagen.sh to see details

Code: Select all

.metagen.sh [pkg [file]|all|new|PACKAGESTXT|md5|rss|asc|filelist|checksums [-a]|man [-a]]
.metagen.sh [miss|provide] pattern
If the dep, md5,meta,con files exist then these info added into the PACKAGES TXT.
to produce only PACKAGES.TXT can type

Code: Select all

sh .metagen.sh PACKAGESTXT
More details here
Other developers use these scripts
Alienbob use this script
daemonspud
Posts: 4
Joined: 07 Apr 2022 20:09

Re: How is the PACKAGES.TXT file made?

Post by daemonspud »

Where would I get the mentioned DEP files?
djemos
Site Admin
Posts: 696
Joined: 15 Apr 2016 06:03

Re: How is the PACKAGES.TXT file made?

Post by djemos »

dep file is created from txz file running depfinder

Code: Select all

depfinder -f package-name.txz
dep files are not needed to create PACKAGES.TXT. Slackware repos have PACKAGES.TXT without dependency files.
dep files for slackel are here inside the sub-directories
user do not need the dep files to use slackel. What are you trying to do ?
daemonspud
Posts: 4
Joined: 07 Apr 2022 20:09

Re: How is the PACKAGES.TXT file made?

Post by daemonspud »

djemos wrote:dep file is created from txz file running depfinder

Code: Select all

depfinder -f package-name.txz
dep files are not needed to create PACKAGES.TXT. Slackware repos have PACKAGES.TXT without dependency files.
dep files for slackel are here inside the sub-directories
user do not need the dep files to use slackel. What are you trying to do ?
I'm trying to make a local repo on Slackware, that points to a more local mirror as slackware.uk isn't very fast where Iive.
djemos
Site Admin
Posts: 696
Joined: 15 Apr 2016 06:03

Re: How is the PACKAGES.TXT file made?

Post by djemos »

1. Suppose you want to create a x86_64 local repo for slackware-15.0
your local repo to be under directory ~/myrepo

Code: Select all

mkdir -p ~/myrepo/x86_64
cd ~/myrepo/x86_64
wget -m -nH -r -np --cut-dirs=4 -R "=D","=A","index.html" https://ftp.cc.uoc.gr/mirrors/linux/salix/x86_64/slackware-15.0/deps/
Download adddepinfo.sh

and copy it to ~/myrepo/x86_64/slackware-15.0

Code: Select all

cp adddepinfo.sh ~/myrepo/x86_64/slackware-15.0
Edit the adddepinfo.sh script and change the line like this SLACKREPO="https://ftp.cc.uoc.gr/mirrors/linux/sla ... re64-15.0/"

Code: Select all

cd ~/myrepo/x86_64/slackware-15.0
run adddepinfo.sh

Code: Select all

sh adddepinfo.sh -f
local repo is ready with deps

2. If you want to create a local repo for slackware64 current to use with slackel
then

Code: Select all

cd ~/myrepo/x86_64/
mv slackware-15.0 slackware-current
cd slackware-current
Edit the adddepinfo.sh script and change the line like this SLACKREPO="https://ftp.cc.uoc.gr/mirrors/linux/sla ... 4-current/"

Code: Select all

rm -rf extra patches CHECKSUMS.md5* ChangeLog.txt PACKAGES.TXT*
run

Code: Select all

sh adddepinfo.sh -f
local repo is ready with deps

3. Now in both cases to use it.
Edit /etc/slapt-get/slapt-getrc

Code: Select all

sudo geany /etc/slapt-get/slapt-getrc
Comment the two lines where you see :OFFICIAL put a # in front like this
#SOURCE=http://www.slackel.gr/repo/x86_64/slack ... /:OFFICIAL
#SOURCE=http://www.slackel.gr/repo/x86_64/slack ... /:OFFICIAL

and copy under the lines (change djemos with your user name type whoami in terminal to see it)
For slackware-15.0

Code: Select all

SOURCE=file:///home/djemos/myrepo/x86_64/slackware-15.0/
SOURCE=file:///home/djemos/myrepo/x86_64/slackware-15.0/extra/
For slackware-current to use with slackel

Code: Select all

SOURCE=file:///home/djemos/myrepo/x86_64/slackware-current/ 
SOURCE=file:///home/djemos/myrepo/x86_64/slackware-current/extra/
now can run
sudo slapt-get -u
sudo slapt-get --upgrade

NOTE: can always edit and change the line SLACKREPO= to point to whatever mirror is fast for you e.g. SLACKREPO="http://ftp.ntua.gr/pub/linux/slackware/ ... 4-current/
and run again sh adddepinfo.sh -f
Post Reply