LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-18-2017, 06:48 PM   #1
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 4,737

Rep: Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877
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
#
 
Old 03-18-2017, 06:54 PM   #2
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 4,737

Original Poster
Rep: Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877
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
 
Old 03-18-2017, 06:57 PM   #3
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 4,737

Original Poster
Rep: Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877
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.
 
Old 03-18-2017, 07:02 PM   #4
Skaendo
Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 492

Rep: Reputation: Disabled
From /etc/slackpkg/mirrors:

#
# Slackpkg only needs to point to the directory that contains
# "ChangeLog.txt", and don't forget the trailing slash.
#
 
Old 03-18-2017, 07:12 PM   #5
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 4,737

Original Poster
Rep: Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877
Quote:
Originally Posted by Skaendo View Post
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.
 
Old 03-18-2017, 07:23 PM   #6
Skaendo
Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 492

Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
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.
 
Old 03-18-2017, 07:26 PM   #7
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 4,737

Original Poster
Rep: Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877
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.
 
Old 03-18-2017, 07:30 PM   #8
Skaendo
Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 492

Rep: Reputation: Disabled
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.
 
Old 03-18-2017, 07:32 PM   #9
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 4,737

Original Poster
Rep: Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877
Quote:
Originally Posted by Skaendo View Post
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.

Last edited by BW-userx; 03-18-2017 at 07:35 PM.
 
Old 03-18-2017, 07:37 PM   #10
Skaendo
Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 492

Rep: Reputation: Disabled
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:
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2017-03-18 18-34-11.png
Views:	16
Size:	49.2 KB
ID:	24544  

Last edited by Skaendo; 03-18-2017 at 07:40 PM.
 
Old 03-18-2017, 07:48 PM   #11
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 4,737

Original Poster
Rep: Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877
Quote:
Originally Posted by Skaendo View Post
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

Last edited by BW-userx; 03-18-2017 at 07:50 PM.
 
Old 03-18-2017, 09:29 PM   #12
bassmadrigal
Senior Member
 
Registered: Nov 2003
Location: Newport News, VA
Distribution: Slackware
Posts: 4,403

Rep: Reputation: 2348Reputation: 2348Reputation: 2348Reputation: 2348Reputation: 2348Reputation: 2348Reputation: 2348Reputation: 2348Reputation: 2348Reputation: 2348Reputation: 2348
Quote:
Originally Posted by BW-userx View Post
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/
 
Old 03-18-2017, 09:50 PM   #13
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 4,737

Original Poster
Rep: Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877
Quote:
Originally Posted by bassmadrigal View Post
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
 
  


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
The best way to mirror HDD contents to a remote hdd? postcd Linux - General 2 04-22-2014 05:36 PM
[SOLVED] How do I copy root the file system of an internal hdd to a usb hdd completelinuxnube Slackware 8 08-06-2012 03:22 PM
how to copy data from system to external hdd gsnravi Linux - Newbie 4 02-28-2009 04:23 AM
copy to SATA makes system freeze (Slack 12) furryspider Slackware 1 08-27-2007 12:40 AM
How to make mirror image of linux partion to one1 HDD TO 2 HDD raj_1 Linux - General 2 11-04-2004 02:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:52 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration