Hi Michael,

Do you have physical access?  If "yes" a local attached USB drive can be used 
as a "local repo".

Below is an example, using an PC Engines APU2 "genx86_64-serial" image.
======================
Insert FAT formatted USB drive.

pbx4 ~ # fdisk -l
--
...
Device     Boot Start    End Sectors   Size Id Type
/dev/sdb1  *       63 524159  524097 255.9M  6 FAT16
--

pbx4 ~ # mkdir /tmp/disk
pbx4 ~ # mount -t vfat /dev/sdb1 /tmp/disk

## Only needed to create a local repo on the USB drive, could be performed 
outside of AstLinux if desired.
## Requires public network access.
pbx4 ~ # mkdir -p /tmp/disk/ast13se-firmware-1.x/genx86_64-serial
pbx4 ~ # cd /tmp/disk/ast13se-firmware-1.x/genx86_64-serial/

pbx4 genx86_64-serial # curl -LO 
https://astlinux-project.org/mirror/ast13se-firmware-1.x/genx86_64-serial/ver
pbx4 genx86_64-serial # curl -LO 
https://astlinux-project.org/mirror/ast13se-firmware-1.x/genx86_64-serial/astlinux-1.4.6.tar.gz
pbx4 genx86_64-serial # curl -LO 
https://astlinux-project.org/mirror/ast13se-firmware-1.x/genx86_64-serial/astlinux-1.4.6.tar.gz.sha1
## End of create a local repo on the USB drive

## Now assume the USB drive was pre-configured and skip the above "create a 
local repo" commands.

## Check the local repo files:
pbx4 ~ # cd
pbx4 ~ # find /tmp/disk/ast13se-firmware-1.x/
/tmp/disk/ast13se-firmware-1.x/
/tmp/disk/ast13se-firmware-1.x/genx86_64-serial
/tmp/disk/ast13se-firmware-1.x/genx86_64-serial/ver
/tmp/disk/ast13se-firmware-1.x/genx86_64-serial/astlinux-1.4.6.tar.gz
/tmp/disk/ast13se-firmware-1.x/genx86_64-serial/astlinux-1.4.6.tar.gz.sha1

## Upgrade using the local (pre-configured) USB drive:
pbx4 ~ # upgrade-run-image check file:///tmp/disk/ast13se-firmware-1.x
Current version is: astlinux-1.4-5507-f21c6b,  Newest available version is: 
astlinux-1.4.6

pbx4 ~ # upgrade-run-image upgrade file:///tmp/disk/ast13se-firmware-1.x
Successful upgrade to: astlinux-1.4.6 [after reboot]

pbx4 ~ # cd
pbx4 ~ # umount /tmp/disk

pbx4 ~ # reboot ; exit
======================

And yes, this local repo method can be used for Runnix as well.

Lonnie

Tip -> For AstLinux 1.4.2 or later: If you have a exFAT formatted drive use 
"mount -t exfat ..." instead of "mount -t vfat ..." above.




> On Jun 24, 2022, at 8:52 PM, Michael Knill 
> <michael.kn...@ipcsolutions.com.au> wrote:
> 
> Is this easy to do?
> I have a site where they are tough with security and I cant reach the 
> download server currently.
>  
> Along with my previous question, a Runnix upgrade without network 
> connectivity may be handy too.
>  
> Regards
>  
> Michael Knill
> Managing Director



_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.

Reply via email to