使用plf更新Mandriva系統

2021-05-25 08:41:00 字數 1364 閱讀 3201

今天使用plf源安裝軟體,忽然變得很慢,只有大概1k左右,而以前都有400k左右的。由於plf是指定的映象列表,懷疑是給我選擇了中國的那個lcuc.org.cn的源(我上那個源一起很慢,上國外的反而快)。

於是決定手動指定plf源。

開啟可以看到很多源列表檔案,我選擇2008.1.i586.list,開啟後就可以看到映象源的列表了。自己找乙個快的,我是逐一開啟,憑感覺看快慢,最後覺得這個很快,下面幾個也不錯,但要稍微慢 一點:

----國內mandriva源站

--幫助文件

---新增plf源

---直接新增mandriva源

---鳥哥私房菜urpmi用法

然後檢視的目錄結構。

開啟urpmi的配置檔案/etc/urpmi/urpmi.cfg,找到最後幾行,可以看到原來的plf配置為:

plf/ free 

plf/ free/ backports 

plf/ non-free 

plf/ non-free/ backports 

把它們修改為:

plf/ free 

plf/ free/ backports

plf/ non-free

plf/ non-free/ backports

然後再重新整理源,安裝軟體,又回到400k/s了,很好很強大。

示例:urpmi.addmedia contrib_backports with media_info/synthesis.hdlist.cz

urpmi.addmedia main with media_info/synthesis.hdlist.cz

urpmi.addmedia --update main_updates with media_info/synthesis.hdlist.cz

urpmi.addmedia main_backports with media_info/synthesis.hdlist.cz

urpmi.addmedia contrib with media_info/synthesis.hdlist.cz

urpmi.addmedia --update contrib_updates with media_info/synthesis.hdlist.cz

urpmi.addmedia non-free with media_info/synthesis.hdlist.cz

urpmi.addmedia --update non-free_updates with media_info/synthesis.hdlist.cz

urpmi.addmedia non-free_backports with media_info/synthesis.hdlist.cz

git使用(持續更新)

做專案時如果不進行版本管理,經常會遇到 修改了,過段時間卻找不到修改的地方。怎麼辦,開始用git來進行管理。在本機上安裝好git之後,建立本地的repository還是比較容易的,在專案所在目錄下,git bash中敲入git init,這樣就初始化了git。具體的一些指令說明如下 1 本地提交 g...

索引使用(持續更新)

不是每個欄位都是可以加索引的,比如文字太長的,mysql innodb最大長度是767位元組,不支援全文索引。myisam才支援全文索引 經常使用explain檢視sql執行計畫 單錶查詢 explain select from test user where user name 哈哈2017 02...

使用portsnap更新ports

portsnap簡介 portsnap從6.0開始引進系統,給與使用者方便的更新系統ports portsnap的命令比較少 fetch 獲取資料 extract 釋放全部ports update 更新ports 使用方法 etc portsnap.conf 裡面更改 servername port...