Warning: There are no enabled repositories defined.
Use 'zypper addrepo' or 'zypper modifyrepo' commands to add or enable repositories.
Warning: There are no enabled repositories defined.
Use 'zypper addrepo' or 'zypper modifyrepo' commands to add or enable repositories.
Warning: There are no enabled repositories defined.
Use 'zypper addrepo' or 'zypper modifyrepo' commands to add or enable repositories.
cat /etc/zypper/repos.d/SLES.repo
cat /etc/zypper/repos.d/SLES.repo
cat /etc/zypper/repos.d/SLES.repo
[SLES]
name=SUSE Linux Enterprise Server 16.0
enabled=0
autorefresh=0
baseurl=dvd:/install
type=rpm-md
keeppackages=0
[SLES]
name=SUSE Linux Enterprise Server 16.0
enabled=0
autorefresh=0
baseurl=dvd:/install
type=rpm-md
keeppackages=0
[SLES]
name=SUSE Linux Enterprise Server 16.0
enabled=0
autorefresh=0
baseurl=dvd:/install
type=rpm-md
keeppackages=0
sudo zypper modifyrepo --enable SLES
# or the short form:
sudo zypper mr -e SLES
sudo zypper modifyrepo --enable SLES
# or the short form:
sudo zypper mr -e SLES
sudo zypper modifyrepo --enable SLES
# or the short form:
sudo zypper mr -e SLES
sudo mkdir -p /mnt/dvd
sudo mount /dev/sr0 /mnt/dvd
sudo mkdir -p /mnt/dvd
sudo mount /dev/sr0 /mnt/dvd
sudo mkdir -p /mnt/dvd
sudo mount /dev/sr0 /mnt/dvd
sudo mkdir -p /mnt/dvd
sudo mount -o loop /path/to/SLES-16.0-Full-x86_64.iso /mnt/dvd
sudo mkdir -p /mnt/dvd
sudo mount -o loop /path/to/SLES-16.0-Full-x86_64.iso /mnt/dvd
sudo mkdir -p /mnt/dvd
sudo mount -o loop /path/to/SLES-16.0-Full-x86_64.iso /mnt/dvd
ls /mnt/dvd
ls /mnt/dvd
ls /mnt/dvd
.signature EFI LiveOS boot install
.signature EFI LiveOS boot install
.signature EFI LiveOS boot install
ls /mnt/dvd/install/repodata
ls /mnt/dvd/install/repodata
ls /mnt/dvd/install/repodata
sudo zypper ar /mnt/dvd SLES16-DVD
sudo zypper ar /mnt/dvd SLES16-DVD
sudo zypper ar /mnt/dvd SLES16-DVD
sudo zypper ref SLES16-DVD
sudo zypper ref SLES16-DVD
sudo zypper ref SLES16-DVD
Repository 'SLES16-DVD' is up to date.
All repositories have been refreshed.
Repository 'SLES16-DVD' is up to date.
All repositories have been refreshed.
Repository 'SLES16-DVD' is up to date.
All repositories have been refreshed.
echo "/dev/sr0 /mnt/dvd iso9660 ro,noauto 0 0" | sudo tee -a /etc/fstab
echo "/dev/sr0 /mnt/dvd iso9660 ro,noauto 0 0" | sudo tee -a /etc/fstab
echo "/dev/sr0 /mnt/dvd iso9660 ro,noauto 0 0" | sudo tee -a /etc/fstab
echo "/path/to/SLES-16.0-Full-x86_64.iso /mnt/dvd iso9660 ro,loop,noauto 0 0" | sudo tee -a /etc/fstab
echo "/path/to/SLES-16.0-Full-x86_64.iso /mnt/dvd iso9660 ro,loop,noauto 0 0" | sudo tee -a /etc/fstab
echo "/path/to/SLES-16.0-Full-x86_64.iso /mnt/dvd iso9660 ro,loop,noauto 0 0" | sudo tee -a /etc/fstab
sudo mount /mnt/dvd
sudo mount /mnt/dvd
sudo mount /mnt/dvd
sudo zypper install -y <package-name>
sudo zypper install -y <package-name>
sudo zypper install -y <package-name>
sudo zypper install -y vim
sudo zypper install -y vim
sudo zypper install -y vim
Loading repository data...
Reading installed packages...
Resolving package dependencies... The following NEW package is going to be installed: vim 1 new package to install.
Overall download size: 1.7 MiB. Already cached: 0 B. After the operation, additional 5.3 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Loading repository data...
Reading installed packages...
Resolving package dependencies... The following NEW package is going to be installed: vim 1 new package to install.
Overall download size: 1.7 MiB. Already cached: 0 B. After the operation, additional 5.3 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Loading repository data...
Reading installed packages...
Resolving package dependencies... The following NEW package is going to be installed: vim 1 new package to install.
Overall download size: 1.7 MiB. Already cached: 0 B. After the operation, additional 5.3 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
# If you enabled the default repository:
zypper search --repo SLES <keyword> # If you added it manually:
zypper search --repo SLES16-DVD <keyword>
# If you enabled the default repository:
zypper search --repo SLES <keyword> # If you added it manually:
zypper search --repo SLES16-DVD <keyword>
# If you enabled the default repository:
zypper search --repo SLES <keyword> # If you added it manually:
zypper search --repo SLES16-DVD <keyword>
# If you added it manually:
sudo zypper rr SLES16-DVD
sudo umount /mnt/dvd # If you enabled the default repository:
sudo zypper mr -d SLES
# If you added it manually:
sudo zypper rr SLES16-DVD
sudo umount /mnt/dvd # If you enabled the default repository:
sudo zypper mr -d SLES
# If you added it manually:
sudo zypper rr SLES16-DVD
sudo umount /mnt/dvd # If you enabled the default repository:
sudo zypper mr -d SLES - OS: SLES 16 installed and running
- Media: SLES 16 Full installation DVD (physical) or ISO file
- Access: sudo privileges
- Time: ~5 minutes - Need Docker on this SLES system? Check out How to Install Docker Rootless on SLES 15/16 - Title: SLES 16: Add a DVD as a Local Zypper Repository (No Subscription Needed)
- Meta Description: Mount the SLES 16 DVD or ISO as a local zypper repository to install packages without a subscription. Works in air-gapped environments. Step-by-step guide.
- Target Keywords: sles 16 local repository, zypper add dvd repo, sles no subscription install packages, sles 16 airgap repository, zypper ar iso sles, sles offline package install
- Word Count: ~750