Original address: http://candon123.blog.51cto.com/704299/1009294/
As you know,you can use the Yum command to install packages on Redhat Linux. It ' s a powerful tool than it can resolve the package dependence. But in Suse,you can also does 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:
## | Alias | Name --+-------------+-------------+---------+--------1 | SUSE-11-SP2 | SUSE-11-SP2 | Yes
Or View the follwing file:
#
#Suse-11-sp2.repo suse-
SuSE:# 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
Now creating the SuSE HA repository:
Mount the SuSE HA iso file SuSE:#
and append following lines: [SUSE-ha] name=suse-ha-enabled=1 autorefresh=0 BaseURL=file:///ha path=/ type=yast2 keeppackages
After Created,refresh the SuSE repository:
#'suse-ha' metadata [done] all repositories has been refreshed. SUSE: ## | Alias | Name | Enabled | Refresh | Type --+-------------+-------------+---------+---------+------1 | SUSE-11-SP2 | SUSE-11-SP2 | Yes | No | 2 | Suse-ha | Suse-ha | Yes | No
Now,you can install any packages by Zypper.
How to Create A Local Repository for SUSE Linux