How is the PACKAGES.TXT file made?
-
- Posts: 4
- Joined: 07 Apr 2022 20:09
How is the PACKAGES.TXT file made?
Specifically, do you use .DEP files to generate it, or is it by hand?
Re: How is the PACKAGES.TXT file made?
Yes, dep file is used if it is exist.daemonspud wrote:Specifically, do you use .DEP files to generate it, or is it by hand?
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)
Code: Select all
.metagen.sh [pkg [file]|all|new|PACKAGESTXT|md5|rss|asc|filelist|checksums [-a]|man [-a]]
.metagen.sh [miss|provide] pattern
to produce only PACKAGES.TXT can type
Code: Select all
sh .metagen.sh PACKAGESTXT
Other developers use these scripts
Alienbob use this script
-
- Posts: 4
- Joined: 07 Apr 2022 20:09
Re: How is the PACKAGES.TXT file made?
Where would I get the mentioned DEP files?
Re: How is the PACKAGES.TXT file made?
dep file is created from txz file running depfinder
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 ?
Code: Select all
depfinder -f package-name.txz
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 ?
-
- Posts: 4
- Joined: 07 Apr 2022 20:09
Re: How is the PACKAGES.TXT file made?
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 wrote:dep file is created from txz file running depfinderdep files are not needed to create PACKAGES.TXT. Slackware repos have PACKAGES.TXT without dependency files.Code: Select all
depfinder -f package-name.txz
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 ?
Re: How is the PACKAGES.TXT file made?
1. Suppose you want to create a x86_64 local repo for slackware-15.0
your local repo to be under directory ~/myrepo
Download adddepinfo.sh
and copy it to ~/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/"
run adddepinfo.sh
local repo is ready with deps
2. If you want to create a local repo for slackware64 current to use with slackel
then
Edit the adddepinfo.sh script and change the line like this SLACKREPO="https://ftp.cc.uoc.gr/mirrors/linux/sla ... 4-current/"
run
local repo is ready with deps
3. Now in both cases to use it.
Edit /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
For slackware-current to use with slackel
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
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/
and copy it to ~/myrepo/x86_64/slackware-15.0
Code: Select all
cp adddepinfo.sh ~/myrepo/x86_64/slackware-15.0
Code: Select all
cd ~/myrepo/x86_64/slackware-15.0
Code: Select all
sh adddepinfo.sh -f
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
Code: Select all
rm -rf extra patches CHECKSUMS.md5* ChangeLog.txt PACKAGES.TXT*
Code: Select all
sh adddepinfo.sh -f
3. Now in both cases to use it.
Edit /etc/slapt-get/slapt-getrc
Code: Select all
sudo geany /etc/slapt-get/slapt-getrc
#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/
Code: Select all
SOURCE=file:///home/djemos/myrepo/x86_64/slackware-current/
SOURCE=file:///home/djemos/myrepo/x86_64/slackware-current/extra/
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