Slackware 13.0 repository with dependency support
Slackware 13.0 repository with dependency support
You can now use one of the following mirrors to have dependency support with slapt-get/gslapt for Slackware 13.0 packages:
http://salix.enialis.net/i486/slackware-13.0/
http://download.salixos.org/i486/slackware-13.0/
The above mirrors don't actually hold any Slackware packages, these are downloaded from a real Slackware mirror. You can read how it all works and how to create such a mirror locally in your own PC in the wiki: http://www.salixos.org/wiki/index.php/H ... cy_support
The default repository selection in /etc/slapt-get/slapt-getrc has been updated to include one of our mirrors. You just need to update slapt-get and accept the slapt-getrc.new file with dotnew.
http://salix.enialis.net/i486/slackware-13.0/
http://download.salixos.org/i486/slackware-13.0/
The above mirrors don't actually hold any Slackware packages, these are downloaded from a real Slackware mirror. You can read how it all works and how to create such a mirror locally in your own PC in the wiki: http://www.salixos.org/wiki/index.php/H ... cy_support
The default repository selection in /etc/slapt-get/slapt-getrc has been updated to include one of our mirrors. You just need to update slapt-get and accept the slapt-getrc.new file with dotnew.
Re: Slackware 13.0 repository with dependency support
Correct me if I'm wrong, this is a big moment for almost every Slackware user isn't it?
Re: Slackware 13.0 repository with dependency support
We have adapted the idea from Stefano Stabellini who is running such a mirror since some time now: http://www.stabellini.net/depslack.htmlSoleSoul wrote:Correct me if I'm wrong, this is a big moment for almost every Slackware user isn't it?
And to add something else: Of course everybody who sets up some public mirrors can announce it here, too
Re: Slackware 13.0 repository with dependency support
I'm trying to setup a repository on my server. When i try to run the script I get an unknown operand error. Please note that this is not on Salix OS. It on my NSLU running slugos, so it could very well be a problem with the OS. I have no idea what the operand error is. Any ideas??
Thanks
Rich
Code: Select all
root@Slugo_2:/var/lib/ftp/salix# ./adddepinfo.sh
--17:02:08-- ftp://slackware.mirrors.tds.net/pub/slackware/slackware-13.0/CHECKSUMS.md5
=> `.CHECKSUMS.md5.new'
Resolving slackware.mirrors.tds.net... 204.246.0.134
Connecting to slackware.mirrors.tds.net[204.246.0.134]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /pub/slackware/slackware-13.0 ... done.
==> PORT ... done. ==> RETR CHECKSUMS.md5 ... done.
Length: 656,416 (unauthoritative)
100%[===============================================================>] 656,416 295.95K/s
17:02:11 (295.27 KB/s) - `.CHECKSUMS.md5.new' saved [656416]
sh: CHECKSUMS.md5: unknown operand
No new packages found.
--17:02:14-- ftp://slackware.mirrors.tds.net/pub/slackware/slackware-13.0/patches/CHECKSUMS.md5
=> `.CHECKSUMS.md5.new'
Resolving slackware.mirrors.tds.net... 204.246.0.134
Connecting to slackware.mirrors.tds.net[204.246.0.134]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /pub/slackware/slackware-13.0/patches ... done.
==> PORT ... done. ==> RETR CHECKSUMS.md5 ... done.
Length: 12,244 (unauthoritative)
100%[===============================================================>] 12,244 --.--K/s
17:02:15 (190.69 KB/s) - `.CHECKSUMS.md5.new' saved [12244]
sh: CHECKSUMS.md5: unknown operand
No new packages found.
--17:02:15-- ftp://slackware.mirrors.tds.net/pub/slackware/slackware-13.0/extra/CHECKSUMS.md5
=> `.CHECKSUMS.md5.new'
Resolving slackware.mirrors.tds.net... 204.246.0.134
Connecting to slackware.mirrors.tds.net[204.246.0.134]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /pub/slackware/slackware-13.0/extra ... done.
==> PORT ... done. ==> RETR CHECKSUMS.md5 ... done.
Length: 37,757 (unauthoritative)
100%[===============================================================>] 37,757 236.38K/s
17:02:15 (235.72 KB/s) - `.CHECKSUMS.md5.new' saved [37757]
sh: CHECKSUMS.md5: unknown operand
No new packages found.
root@Slugo_2:/var/lib/ftp/salix#
Rich
Last edited by laprjns on 3. Dec 2009, 23:19, edited 1 time in total.
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
Re: Slackware 13.0 repository with dependency support
CHECKSUMS.md5 is referenced in two lines in the script:
and
Apparently one of these (probably touch?) doesn't work in your NSLU for some reason. Try them on their own and see what you get. But I'm just guessing here.
Code: Select all
touch CHECKSUMS.md5
Code: Select all
mv -f .CHECKSUMS.md5 CHECKSUMS.md5
Re: Slackware 13.0 repository with dependency support
Well they both worked on their own, but it got me to look in the right area. This if statement,gapan wrote:Apparently one of these (probably touch?) doesn't work in your NSLU for some reason. Try them on their own and see what you get. But I'm just guessing here.
Code: Select all
f [[ ! `diff CHECKSUMS.md5 .CHECKSUMS.md5.new` = "" ]
Code: Select all
if [[ ! "diff CHECKSUMS.md5 .CHECKSUMS.md5.new" = "" ]
Code: Select all
Resolving slackware.mirrors.tds.net... 204.246.0.134
Connecting to slackware.mirrors.tds.net[204.246.0.134]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /pub/slackware/slackware-13.0 ... done.
==> PORT ... done. ==> RETR ChangeLog.txt ... done.
Length: 226,459 (unauthoritative)
100%[===============================================>] 226,459 266.76K/s
15:22:42 (266.10 KB/s) - `ChangeLog.txt' saved [226459]
Adding dependency info to PACKAGES.TXT, this may take a while.sed: can't find label for jump to 'a}'
.sed: can't find label for jump to 'a}'
.sed: can't find label for jump to 'a}'
.sed: can't find label for jump to 'a}'
.sed: can't find label for jump to 'a}'
.sed: can't find label for jump to 'a}'
.sed: can't find label for jump to 'a}'
.^Z[1] + Stopped ./adddepinfo.sh
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
Re: Slackware 13.0 repository with dependency support
You replaced the backticks (`) with double quotes! That's not right! Everything put in the backticks is executed and the result of that command becomes a variable. It seems the backticks are not used properly in your system. Try replacing everything included in backticks with $(), like:
to
(you need the spaces after and before the parentheses).
Code: Select all
if [[ ! `diff CHECKSUMS.md5 .CHECKSUMS.md5.new` = "" ]
Code: Select all
if [[ ! $( diff CHECKSUMS.md5 .CHECKSUMS.md5.new ) = "" ]
Re: Slackware 13.0 repository with dependency support
Well, i didn't get the unknown operand error after I did this. Also tried using the $(), but the unknown operand error returned.gapan wrote:You replaced the backticks (`) with double quotes! That's not right!
As it turns out, my Slugo's busybox sed command is indeed crippled. I was able to install a full featured sed version via the Slugos package manager and after that was able run the stock adddepinfo script with out errors.
So, now I can announce my slackware repository with dependency checking:
ftp://laprjns.com/salix/slackware/slackware-13.0
ftp://laprjns.com/salix/slackware/slackware-13.0/extra
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
Re: Slackware 13.0 repository with dependency support
If you leaved double quotes it's not working.laprjns wrote:Well, i didn't get the unknown operand error after I did this. Also tried using the $(), but the unknown operand error returned.
Code: Select all
if [[ ! `diff CHECKSUMS.md5 .CHECKSUMS.md5.new` = "" ]]
Code: Select all
if [[ ! $( diff CHECKSUMS.md5 .CHECKSUMS.md5.new ) = "" ]]
If you use:
Code: Select all
if [[ ! "diff CHECKSUMS.md5 .CHECKSUMS.md5.new" = "" ]]
My guess is that you do not have "diff" installed in your system or that the diff command doesn't work like the GNU diff, hence the "CHECKSUMS.md5: unknown operand".
Try doing a diff directly in your SlugOS shell.
If it works, you could use this code instead :
Code: Select all
diff CHECKSUMS.md5 .CHECKSUMS.md5.new > /dev/null
if [ "$?" -eq "1" ]
Re: Slackware 13.0 repository with dependency support
Actually,I think the unknown operand was a red herring. After updating the sed package on my SlugOS system,I was able to run gapan's script as he wrote it, no changes. Now everything is working and I have the repository up and running.
Thanks for the help.
Rich
Thanks for the help.
Rich
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"