windows系統下搭建suse軟體源

來源:互聯網
上載者:User

標籤:suse windows yum源

一、安裝ftp組件

依次開啟“控制台”-“程式和功能”-“開啟或關閉Windows功能”

把“Internet資訊服務”選項中的“FTP伺服器”、“WEB管理工具”以及“全球資訊網服務”全部選中,這裡需要注意開啟選項前面的“+”看看裡邊的子選項有沒有勾選,最後選擇“確定”,等待安裝完成。


二、配置ftp伺服器

依次開啟“控制台”-“管理工具”-“Internet資訊服務(IIS)管理伺服器”,然後按右鍵左邊,點擊“添加ftp網站”選項,之後按照提示下一步下一步就可以了,注意在選擇根目錄的時候填寫想要存放yum源的目錄,也就是我們ftp要訪問的根目錄,這裡我配置D:\yum為根目錄,至此windows系統ftp伺服器就搭建完成了。


三、yum源的配置

在windows系統上搭建好ftp後,將鏡像檔案SLES-11-SP2-DVD-x86_64-GM-DVD.iso解壓後的檔案放到D:\yum下,之後就可以使用瀏覽器通過連結地址ftp://windows系統IP,來訪問ftp上的檔案了。


在suse伺服器上添加yum源設定檔

/etc/zypp/repos.d # vi ftp-suse.repo 

[ftp-suse]

name=ftp-suse

enabled=1

autorefresh=0

baseurl=ftp://windows系統IP

gpgcheck=0


重新整理緩衝

/etc/zypp/repos.d # zypper ref

Retrieving repository ‘ftp-suse‘ metadata [done]

Building repository ‘ftp-suse‘ cache [done]

All repositories have been refreshed.


四、驗證

嘗試安裝軟體包

# zypper install ncurses-devel

Loading repository data...

Reading installed packages...

Resolving package dependencies...


The following NEW packages are going to be installed:

  ncurses-devel tack 


2 new packages to install.

Overall download size: 3.2 MiB. After the operation, additional 22.7 MiB will be used.

Continue? [y/n/?] (y): y

Retrieving package tack-5.6-90.55.x86_64 (1/2), 79.0 KiB (170.0 KiB unpacked)

Retrieving: tack-5.6-90.55.x86_64.rpm [done]

Retrieving package ncurses-devel-5.6-90.55.x86_64 (2/2), 3.1 MiB (22.5 MiB unpacked)

Retrieving: ncurses-devel-5.6-90.55.x86_64.rpm [done]

Installing: tack-5.6-90.55 [done]

Installing: ncurses-devel-5.6-90.55 [done]


本文出自 “xiaoxiaozhou” 部落格,請務必保留此出處http://xiaoxiaozhou.blog.51cto.com/4681537/1888713

windows系統下搭建suse軟體源

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.