LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   how do I use a copy of slack mirror on hdd to update system? (https://www.linuxquestions.org/questions/slackware-14/how-do-i-use-a-copy-of-slack-mirror-on-hdd-to-update-system-4175602093/)

BW-userx 03-18-2017 05:48 PM

how do I use a copy of slack mirror on hdd to update system?
 
I am using this mirror-slackware-current.sh To keep my iso up to date just in case I ever need to reinstall Slack it will (should) cut down on having to update it after finishing Installing Slack. I already have the current on my hdd so why download it again when I can use what I already have, but

how do I write it in the mirrors file to use it to update my OS on my laptop?

this is what I added to the mirrors file but it didn't take.
Code:

#----------------------------------------------------------------
# Local Directory
#----------------------------------------------------------------
# file://path/to/some/directory/
#file://media/slack-mirror/slackware64-current
#


BW-userx 03-18-2017 05:54 PM

The 2nd-dary drive is mounted in fstab so it is always there and mounted. the file structure is this.
Code:

userx@slackwhere⚡️/etc/slackpkg⚡️$ ls /media/slack-mirror
mirror-slackware-current.conf
mirror-slackware-current.sh
mirror-slackware-current_slackware64-current_ChangeLog.txt
slackware64-current
slackware64-current-install-dvd-mar-08-2017.iso
slackware64-current-iso


BW-userx 03-18-2017 05:57 PM

This is the error message I get when I have the file://media/slack-mirror/slackware64-current uncommeneted and comment out the web mirror addess. then run this.
Code:


userx@slackwhere⚡️/etc/slackpkg⚡️$ sudo slackpkg update

Updating the package lists...
        Downloading...
                        Linking /media/slack-mirror/slackware64-currentChangeLog.txt...
grep: /tmp/slackpkg.DvYxpF/ChangeLog.txt: No such file or directory

Error downloading from /media/slack-mirror/slackware64-current.
Please, check your mirror and try again.


Skaendo 03-18-2017 06:02 PM

From /etc/slackpkg/mirrors:

#
# Slackpkg only needs to point to the directory that contains
# "ChangeLog.txt", and don't forget the trailing slash.
#

BW-userx 03-18-2017 06:12 PM

Quote:

Originally Posted by Skaendo (Post 5685331)
From /etc/slackpkg/mirrors:

#
# Slackpkg only needs to point to the directory that contains
# "ChangeLog.txt", and don't forget the trailing slash.
#

I half fixed that - got a go back and do that part better the shell changes the name of the ChangeLog.txt but it don't make sense how does it know where the software is at if all it points to is the changelog.txt?

it fails says it cannot find file so I got a visual check it to see if it is actually there.

Skaendo 03-18-2017 06:23 PM

Quote:

Originally Posted by BW-userx (Post 5685335)
I half fixed that - got a go back and do that part better the shell changes the name of the ChangeLog.txt but it don't make sense how does it know where the software is at if all it points to is the changelog.txt?

it fails says it cannot find file so I got a visual check it to see if it is actually there.

It is not changing the name, read my previous post again.

BW-userx 03-18-2017 06:26 PM

mirror-slackware-current_slackware64-current_ChangeLog.txt <-- that is the name of the changelog which I now deem stupid on ground it looks for the name ChangeLog.txt.

I get this error running slackpkg install-new
Code:

Package: mlocate-0.26-x86_64-1.txz
                        Linking /media/slack-mirror/./slackware64/a/mlocate-0.26-x86_64-1.txz...
                        Linking /media/slack-mirror/./slackware64/a/mlocate-0.26-x86_64-1.txz.asc...
        ERROR - Package not installed! Not found error!

it is there
Code:

userx@slackwhere⚡️/etc/slackpkg⚡️$ ls /media/slack-mirror/slackware64-current/slackware64/a/mlocate-0.26-x86_64-1.txz                   
/media/slack-mirror/slackware64-current/slackware64/a/mlocate-0.26-x86_64-1.txz

the .asc file (2nd file) I have no idea where it is.

Skaendo 03-18-2017 06:30 PM

Your link should be pointing to:

/media/slack-mirror/slackware64-current/ChangeLog.txt

and should be formatted as such:

file://media/slack-mirror/slackware64-current/

Notice the trailing slash.

BW-userx 03-18-2017 06:32 PM

Quote:

Originally Posted by Skaendo (Post 5685341)
It is not changing the name, read my previous post again.

sudo slackpkg update

Updating the package lists...
Downloading...
Linking /media/slack-mirror/ChangeLog.txt...
grep: /tmp/slackpkg.4ZstY9/ChangeLog.txt: No such file or directory

Error downloading from /media/slack-mirror/.
Please, check your mirror and try again.


mirror-slackware-current_slackware64-current_ChangeLog.txt <-- that is the name of the changelog which I now deem stupid on ground it looks for the name ChangeLog.txt.

this is where I am having the shell script put the change log and mirrors look to
Code:

# Local Directory
#----------------------------------------------------------------
# file://path/to/some/directory/
 file://media/slack-mirror/

if I change that file to just ChangeLog.txt I get the error in post #7

and I just seen that the mirror-slackware-current_slackware64-current_ChangeLog.txt goes way when that script is done running.

Skaendo 03-18-2017 06:37 PM

1 Attachment(s)
You have something screwed up. My local mirror does not have "mirror-slackware-current_slackware64-current_ChangeLog.txt".

I think that you have made some edits to the config for mirror-slackware-current.sh that are strange to say the least.

This is how mine looks, and how I have been updating from:

BW-userx 03-18-2017 06:48 PM

Quote:

Originally Posted by Skaendo (Post 5685346)
You have something screwed up. My local mirror does not have "mirror-slackware-current_slackware64-current_ChangeLog.txt".

I think that you have made some edits to the config for mirror-slackware-current.sh that are strange to say the least.

This is how mine looks, and how I have been updating from:

Ok I got it .. I was trying to use the temp change log that script makes. if you look in the script you'll find it
Code:

rm -f $TMP/${SCRIPTID}_${SLACKRELEASE}_ChangeLog.txt
I looked further into the dir structure and found that actual ChangeLog.txt and it installed-new now to try update-all

bassmadrigal 03-18-2017 08:29 PM

Quote:

Originally Posted by BW-userx (Post 5685344)
Code:

# Local Directory
#----------------------------------------------------------------
# file://path/to/some/directory/
 file://media/slack-mirror/


Not sure if you got this figured out yet, but you need to make sure your Slackware version is there as well. You can have all of the Slackware versions, both 32bit and 64bit in that directory, so slackpkg needs to know what version you want.

Code:

# Local Directory
#----------------------------------------------------------------
# file://path/to/some/directory/
 file://media/slack-mirror/slackware64-current/


BW-userx 03-18-2017 08:50 PM

Quote:

Originally Posted by bassmadrigal (Post 5685372)
Not sure if you got this figured out yet, but you need to make sure your Slackware version is there as well. You can have all of the Slackware versions, both 32bit and 64bit in that directory, so slackpkg needs to know what version you want.

Code:

# Local Directory
#----------------------------------------------------------------
# file://path/to/some/directory/
 file://media/slack-mirror/slackware64-current/


I believe the big boo boo was I didn't have that / at the end, and when I posted this I went to trying to use the temp path_verson_changelog.txt and it was outside the current64 dir then after all of that doing it the wrong way I finally figured it out.

so yeah it is working now, thanks for your decisive input though


All times are GMT -5. The time now is 06:43 PM.