banner

[Rule] Rules  [Home] Main Forum  [Portal] Portal  
[Members] Member Listing  [Statistics] Statistics  [Search] Search  [Reading Room] Reading Room 
[Register] Register  
[Login] Loginhttp  | https  ]
 
Forum Index Thảo luận hệ điều hành *nix [Sưu tầm] Smart package manager-SPM: trình quản lí phần mềm thông minh  XML
  [Question]   [Sưu tầm] Smart package manager-SPM: trình quản lí phần mềm thông minh 04/04/2008 12:11:14 (+0700) | #1 | 123145
m3onh0x84
Member

[Minus]    0    [Plus]
Joined: 29/11/2007 15:22:21
Messages: 467
Location: lang thang 4 biển
Offline
[Profile] [PM] [WWW] [Yahoo!] [MSN]
Bài này đã có từ lâu rồi nhưng em chép lại làm hướng dẫn cho những lính mới khác giống em smilie
http://vnexperts.net/index.php?option=com_joomlaboard&Itemid=171&func=view&id=4584&catid=118
- Giao diện sử dụng : dòng lênh - CLI và đồ hoạ - GUI Gnome .
- Hỗ trợ nhiều loại kênh với nhiều kho chứa của nhiều distro - dòng linux khác nhau như : apt , dpkg , yum . YaST2, Emerge ; ....
#APT-DEB Repository .
#APT-RPM Repository
#DPKG Install Packages
#Mirror Information
#Red Carpert Channel
#RPM Directory
#RPM HeaderList
#RPM Metadata (YUM)
#RPM Install Packages
#Slackware Repository
#Slackware Install Packages
#URPMI Repository
- Hỗ trợ sắp xếp độ ưu tiên giữa các kênh . Kênh nào có độ ưu tiên cao sẽ được hiểu là nơi cung cấp các gói tin tin cậy , phù hợp nhất với hệ thống .
- Trình download của smart hỗ trợ đa kết nối tới server - máy chủ (download song song)
- Tự động phân tải các mirror - liên kết
Sau đây là VD các mirror của FC 3 :
Code:
root@accvn:~# smart channel --show
[dries]
type = rpm-md
name = Dries
prioty = 100
baseurl= 
 http://apt.sw.be/dries/fedora/fc3/i386/dries/RPMS
[livna-stable]
type = rpm-md
name = Kde Stable
priority = 10
base url http://rpm.livna.org/fedora/3/i386/dries/RPMS
[kde-redhat-stable]
type = rpm-md 
name = Kde Stable
priority =10
baseurl = http://apt.kde-redhat.org/apt/kde-redhat/fedora/3/i386/stable/
[rpmforge]
type = rpm-md
name = RpmForge
baseurl = http://apt.sw.be/dries/fedora/fc3/i386/dries/RPMS
[updates]
type = rpm-md
name = Update packages from Red Hat for Fedora Core 3 - i386
priority = 100
baseurl = http://ftp.isu.edu.tw/pub/Linux/Fedora/linux/core/updates/3/i386
[rpm-db]
type = rpm-sys
name = RPM Database on this system 
priority = 100
[freshrpms]
type = rpm-md
name = Freshrpms
priority = 100
baseurl = http://ayo.freshrpms.net/fedora/linux/3/i386/freshrpms
freshrpms
[os]
type = rpm-md
name = packages from Red Hat for Fedora Core 3 - i386 
baseurl = ftp://ftp.hostrino.com/pub/fedora/linux/core/3/i386/os

SPM hỗ trợ nhiều tính năng qua các lựa chọn
Code:
root@accvn: ~# smart
Usage : smart command [option] [arguments]
Action command :
update
install
reinstall
upgrade
remove
check
fix
download
Query command :
search
query
info
stats
Setup command :
channel 
priority
mirror
flag
Run "smart command --help" for information

Giới thiệu của trình add/remove application - Cài đặt/Gỡ bỏ ứng dụng trong Ubuntu 7.10 về SPM :
Code:
Smart Package Manager
An alternative package manager that works with dpkg/rpm  
The Smart Package Manager project has the ambitious objective of creating smart and portable algorithms for solving adequately the problem of managing software upgrading and installation. This tool works in all major distributions (APT, APT-RPM, YUM, URPMI, etc).
This project is in beta testing. Please, understand that bugs are expected to be found at that stage, and there are features that still must be implemented in the forthcoming future.
This package contains the GTK2 frontend for Smart.
This application is provided by the Ubuntu community.
Smart Package Manager integrates well into the Ubuntu desktop

Trình smart package manager này còn có những tên gọi khác như smart , smartrpm , smart-rpm , SPM , Smart PM ... Nguồn down gói này có thể tìm thấy trên các trang chủ của từng distro , và trên SF.net, trên gnome.org . Trên Ubuntu cũng có thể dùng gói rpm trong synaptic package manager để cài thêm các plugin cho synaptic , apt , aptitude . Alien dùng cũng được ( tớ thấy hiệu quả của tên này k0 chắc lắm ) .
Em dùng Ubuntu 7.10 và thấy nhiều tính năng của trình smart packages manager này đã được bổ sung vào synaptic . Do vậy nên nếu k0 cần đầy đủ tính năng của SPM thì k0 nên dùng smilie
Ngoài ra còn có Kompile , trình này có chức năng cài soft từ mã nguồn , giao diện KDE . Nguồn tải , tài liệu trên kde.org và SF.net . Tuy nhiên vẫn nên biên dịch các gói tin bằng tay hơn . Vì làm thủ công sẽ biết chính xác được mình cần gì , thiếu gì . Trình Kompile với giao diện KDE chỉ giúp ta biên dịch nhanh hơn và gọn hơn mà thôi .
Giới thiệu của trình Add/Remove application trong Ubuntu vê Kompile :
Code:
Kompile
interface for compilation automation for KDE  
Kompile is a frontend for automatic execution of configurations, compilation and installation of source tarball. When you compile and install Kompile sources (with normal steps "configure && make && make install") some new actions are added to Konqueror’s action menu for tar-based compressed archives (.tar, .tar.gz, .tar.bz, .tar.bz2).

This application is provided by the Ubuntu community.
Kompile integrates well into the Kubuntu desktop
1/ LÀM ƠN "Đọc kĩ hướng dẫn sử dụng trước khi dùng".
2/homepage: trước khi hỏi thì LÀM ƠN tìm kiếm. Vì để biết nhiều hơn thì ai cũng phải đọc "VỪNG ƠI MỞ RA"
Hỏi FAQ thì lên asking.vn mà hỏi
[Up] [Print Copy]
  [Question]   Re: [Sưu tầm] Smart package manager-SPM: trình quản lí phần mềm thông 14/04/2008 12:05:19 (+0700) | #2 | 125132
m3onh0x84
Member

[Minus]    0    [Plus]
Joined: 29/11/2007 15:22:21
Messages: 467
Location: lang thang 4 biển
Offline
[Profile] [PM] [WWW] [Yahoo!] [MSN]
Đang viết dở vì mạng chập chờn smilie
Em mới dùng Fedora và Ubuntu nên chỉ dám nói vè 2 distro này smilie (vẫn là chép lại từ nguồn sưu tầm trên mạng )
2 trình quản lí soft yum và apt tuy mạnh nhưng quản lý danh sách các gói hơi rắc rối smilie . Với yum , người dùng cung cấp địa chỉ của các "kho chứa" gói tin RPM qua đường dẫn máy chủ trên Internet vào file cấu hình là yum.conf . Yum sẽ tự động kết nối tới các kho chứa này , tải file thông tin về tất cả các gói tin (repository metadata) trên server về . Yum sẽ dùng file này để check sự phụ thuộc các gói tin khi thực hiện quá trình cài đặt , cập nhật , gỡ bỏ .... Dưới đây là 1 VD của file cấu hình yum.conf , trong đó có 2 kho : 1 kho chứa các gói tin cơ bản , 1 kho chứa các gói tin update .
Code:
[base]
name= Fedora Core $releasever - $baseach - Base
baseurl=ftp://ftp.hostrino.com/pub/fedora/linux/core/
$releaserver/$basearch/os
[update-released]
name=Fedora Core $releasever - $basearch - Released Updates
baseurl=http://ftp.isu.edu.tw/pub/Linux/Fedora/linux/core/updates/$releasever/$baseach


Yum có rất nhiều tính năng hỗ trợ người dùng. Ngoài giúp người dùng cài đặt , gỡ bỏ , cập nhật tự động . Yum còn hỗ trợ thêm tính năng liệt kê tất cả các gói tin trên kho (yum list), tìm tên gói tin có cung cấp thư viện người dùng cần (yum provides), quản lí tất cả các gói tin theo nhóm (yum groupinstall) | groupremove | grouplist ....)
Code:
Usage: 
yum [option] <update | install | info | remove | list | clean | provides | search | check-update | groupdate | grouplist |  groupinfo | groupremove | generate-rss | makecache | localinstall >

Tuy nhiên, nhiều dùng vẫn than phiền về tốc độ của yum . Tốc độ xử lý thông tin của các gói tin và tải gói tin về từ trên server - máy chủ - để cài đặt diễn ra rất chậm , làm mất nhiều thời gian của người dùng. Ngoài ra còn có cơ chế kiểm tra sự phụ thuộc quá khắt khe , nhiêù lúc người dùng bắt buộc phải cài những gói tin k0 thật sự cần thiết lắm với gói tin định cài .
Đã có nhiều người dùng lựa chọn APT , trình quản lý gói tin ưa thích trên Debian , cho Redhat , Fedora . Với APT , tốc độ xử lý rất nhanh , đặc biệt trong tìm kiếm gói tin . Tuy nhiên , cơ chế kiểm tra sự phụ thuộc cũng khắt khe k0 kém gì YUM . Khi APT được cài trên hệ thống gói tin RPM và phát hiện ra nhiều lỗi về sự phụ thuộc giữa các gói tin , APT sẽ yêu cầu phải giải quyết xong sự phụ thuộc này thì các tiện ích của APT mới hoạt động được . Thêm vào đó, k0 có nhiều kho chứa gói tin RPM hỗ trợ cơ chế đọc file của APT .
1/ LÀM ƠN "Đọc kĩ hướng dẫn sử dụng trước khi dùng".
2/homepage: trước khi hỏi thì LÀM ƠN tìm kiếm. Vì để biết nhiều hơn thì ai cũng phải đọc "VỪNG ƠI MỞ RA"
Hỏi FAQ thì lên asking.vn mà hỏi
[Up] [Print Copy]
  [Question]   Re: [Sưu tầm] Smart package manager-SPM: trình quản lí phần mềm thông 15/04/2008 03:54:09 (+0700) | #3 | 125273
m3onh0x84
Member

[Minus]    0    [Plus]
Joined: 29/11/2007 15:22:21
Messages: 467
Location: lang thang 4 biển
Offline
[Profile] [PM] [WWW] [Yahoo!] [MSN]
1 VD khi dùng APT cài đặt 1 gói tin :
Code:
#apt-get install nmap

Nhận được thông báo lỗi :
....
Code:
E: Unmet dependencies . Try 'atp-get-f install' with no packages with no packages (or specify a solution) .


The following extra packages will be installed :
Code:
Ommi -foomatic bind bind-libs utils cups foomatic gd 
gdk-pixbuf ghostscript 
 ghostscript-fonts  gtk2 hal httpd httpd-suexec
kernel#2.6.12-1.1381_FC3n
mknitrd nfs-utils openssh openssh-clients
 kernel-utils#1:2.4-13.1.39 libgcj libgcj-develma
openssh-server pytgtk2 pytgtk2-libglade qt redhat-menus
system-config-printer urw-fonts
 utils-linux vim-minimal vixie-cron words xinitrc xorg-x11
xorg-x11-Mesa-libGL
 xorg-x11-Mesa-libGLU xorg-x11-font-utils xorg-x11-libs
xorg-x11-xauth xorg-x11-xfs
The following packages will be upgraded
 bind - libs bind - utils httpd - suexec libgcj-devel mkinitrd 
openssh - clients openssh - server pygtk2
 pygtk2 -libglade
The following packages will be REPLACED 
 mount (by util-linux)
The following NEW packages will be installed :
 Omni - foomatic bind cups foomatic gd gdk - pixbuf
ghostscript ghostscript-fonts gtk2 hal httpd 
 kernel# 2.6.12-1.1381_FC3 kernel - utils#1:2.4-13.39
libgcj man nfs - utils openssh qt
 redhat - menus system - config - printer urw - fonts util - linux
vim-minimal vixie - cron words xinitrc
 xorg-x11-Mesa-libGLU xorg-x11-font-utils xorg-x11-libs
xorg-x11-font-utils-xauth xorg-x11-xfs
9 upgrade, 33 newly installed , 1 replaced, 0 removed and 88 upgrade .
Need to get 77,0 MB of archives 
After unpacking 223 MB of additional disk space will be used
1/ LÀM ƠN "Đọc kĩ hướng dẫn sử dụng trước khi dùng".
2/homepage: trước khi hỏi thì LÀM ƠN tìm kiếm. Vì để biết nhiều hơn thì ai cũng phải đọc "VỪNG ƠI MỞ RA"
Hỏi FAQ thì lên asking.vn mà hỏi
[Up] [Print Copy]
[digg] [delicious] [google] [yahoo] [technorati] [reddit] [stumbleupon]
Go to: 
 Users currently in here 
1 Anonymous

Powered by JForum - Extended by HVAOnline
 hvaonline.net  |  hvaforum.net  |  hvazone.net  |  hvanews.net  |  vnhacker.org
1999 - 2013 © v2012|0504|218|