1、利用ISO文件制作源
cn8012slslm02:/opt # zypper ar -c -t yast2 "iso:/?iso=/opt/sles12sp2_x86_64.iso" "suse12"
Adding repository 'suse12' ..................................................................[done]
Repository 'suse12' successfully added
Enabled : Yes
Autorefresh : No
GPG Check : Yes
Priority : 99
URI : iso:///?iso=/opt/sles12sp2_x86_64.iso
2、查看源
cn8012slslm02:/opt # zypper repos
# | Alias | Name | Enabled | GPG Check | Refresh
--+-----------------------+-----------------------+---------+-----------+--------
1 | SLE-12-SP2-SAP-12.2-0 | SLE-12-SP2-SAP-12.2-0 | Yes | (r ) Yes | No
2 | suse12 | suse12 | Yes | ( p) Yes | No
3、删除默认的1源
cn8012slslm02:/opt # zypper rr 1
System management is locked by the application with pid 26608 (zypper).
Close this application before trying again.
cn8012slslm02:/opt # zypper rr 1
Removing repository 'SLE-12-SP2-SAP-12.2-0' .................................................[done]
Repository 'SLE-12-SP2-SAP-12.2-0' has been removed.
4、启用新的源
cn8012slslm02:/opt # zypper mr -r "suse12"
Autorefresh has been enabled for repository 'suse12'.
5、安装包
#zypper install libstdc++33