How To Create A Local Repository For SUSE Linux
2012-09-28 16:04
429 查看
As you know,you can use the yum command to install packages on redhat linux.It's a powerful tool than it can resolve thepackage dependence.But in suse,you can also do it easily by zypper command.Before,you must know how to create the packages repository.
By default,the SUSE linux dvd as the default repository,you can check it by following command:
Or view the follwing file:
Now creating the suse HA repository:
After created,refresh the suse repository:
Now,you can install any packages by zypper.
By default,the SUSE linux dvd as the default repository,you can check it by following command:
suse:~ # zypper repos # | Alias | Name | Enabled | Refresh --+-------------+-------------+---------+-------- 1 | SUSE-11-SP2 | SUSE-11-SP2 | Yes | No
Or view the follwing file:
suse:~ # cd /etc/zypp/repos.d suse:/etc/zypp/repos.d # ls SUSE-11-SP2.repo SUSE-HA.repo suse:/etc/zypp/repos.d # cat SUSE-11-SP2.repo [SUSE-11-SP2] name=SUSE-11-SP2 enabled=1 autorefresh=0 baseurl=cd:///?devices=/dev/sr0 path=/ type=yast2 keeppackages=0
Now creating the suse HA repository:
//Mount the suse HA iso file suse:~ # mount -o loop SLE-HA-11-SP2-x86_64-GM-CD1.iso /ha //Edit the /etc/zypp/repos.d/SUSE-11-SP2.repo file and append following lines: [SUSE-HA] name=SUSE-HA enabled=1 autorefresh=0 baseurl=file:///ha path=/ type=yast2 keeppackages=0
After created,refresh the suse repository:
suse:/etc/zypp/repos.d # zypper ref Retrieving repository 'SUSE-HA' metadata [done] All repositories have been refreshed. suse:/etc/zypp/repos.d # zypper ls # | Alias | Name | Enabled | Refresh | Type --+-------------+-------------+---------+---------+------ 1 | SUSE-11-SP2 | SUSE-11-SP2 | Yes | No | yast2 2 | SUSE-HA | SUSE-HA | Yes | No | yast2
Now,you can install any packages by zypper.
相关文章推荐
- How To Create A Local Repository For SUSE Linux
- How to create a maven repository for your github project step by step
- How to create aligned partitions in Linux for use with NetApp LUNs, VMDKs, VHDs and other virtual di
- [Postfix讨论] ExtMail Solution HOWTO for Linux
- How to install libpcap for Linux?
- How To Create Custom Skins For DotText(如何为DotText创建自定义风格的皮肤)
- How to create and use SDCard image for Android emulator
- C3P0在Linux下的Failed to get local InetAddress for VMID解决方法
- How to Create a First C Program on Linux
- How to include library manually into maven local repository?
- How to Use Xmonad, a Tiling Window Manager for Linux
- How to create a link in Linux
- 转自 https://www.digitalocean.com/community/articles/how-to-create-a-ssl-certificate-on-nginx-for-cent
- Linux环境下C3P0 Failed to get local InetAddress for VMID 解决办法
- How To Create a SSL Certificate on Apache for Ubuntu 14.04
- How to create installation patches for VS.NET deployment projects
- How to create cab package for wm5/wm6
- Howto create a System.Linq.Expressions.Expression for Like
- Linux: How to Configure the DNS Server for 11gR2 SCAN (Doc ID 1107295.1)
- HOWTO build arm-linux toolchain for ARM/XSCALE