2005/Aug/05

apt เป็นชื่อของโปรแกรมที่ใช้ในการบริหารและจัดการแพคเก็จ ซึ่งแต่เดิมนั้น มีเฉพาะใน debian linux เท่านั้น ซึ่งซอฟต์แวร์แพคเก็จของ debian นั้น จะมีนามสกุลลงท้ายด้วย .deb ส่วน redhat/fedora นั้น ซอฟต์แวร์แพคเก็จจะมีนามสกุลลงท้ายด้วย .rpm และโปรแกรมที่ใช้ในการบริหารจัดการ (อัพเดต, ติดตั้ง , เอาออก) จะเป็น yum และ up2date ครับ แต่อย่างไรก็ตาม ได้มีการพัฒนาใช้ redhat/fedora สามารถใช้งานโปรแกรม apt และ synaptic ซึ่งสามารถจัดการกับแพคเก็จต่างๆ ได้ดีกว่า yum และ up2date ครับ

ขั้นตอนการติดตั้ง

1. ก่อนอื่นให้เราทำการติดตั้งโปรแกรม apt ด้วย yum เลยครับ

#yum install apt

พอติดตั้งเสร็จแล้ว ไฟล์คอนฟิกจะอยู่ที่ /etc/apt ครับ
2. เพิ่มแหล่งที่เก็บโปรแกรม(repositories) ที่จะใช้ในการอัพเดตและติดตั้งโปรแกรม

  • สร้างไฟล์ dag.list ไว้ที่ /etc/apt/source.list.d/ โดยมีข้อมูลดังนี้
# Name: Dag RPM Repository
# URL: http://dag.wieers.com/apt/
# GPG Key run:
#rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
rpm http://apt.sw.be fedora/4/en/i386 dag
  • สร้างไฟล์ dries.list ไว้ที่ /etc/apt/source.list.d โดยมีข้อมูลดังนี้
# Name: Dries RPM Repository
#GPG rpm --import http://dries.ulyssis.org/rpm/RPM-GPG-KEY.dries.txt
rpm http://apt.sw.be dries/fedora/fc4/i386 dries

  • สร้างไฟล์ freshrpms.list ไว้ที่ /etc/apt/source.list.d โดยมีข้อมูลดังนี้
# Name: FreshRPMS
# URL: http://ayo.freshrpms.net/
# GPG Key run:
#rpm --import http://freshrpms.net/packages/RPM-GPG-KEY.txt
rpm http://ayo.freshrpms.net fedora/linux/4/i386 core freshrpms updates extras tupdates


จากนั้นทำการเพิ่ม GPG KEY เข้าไปในฐานข้อมูลแพคเก็จ เพื่อใช้ในการตรวจสอบความสมบูรณ์ของแพคเก็จ

#
rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
#rpm --import http://dries.ulyssis.org/rpm/RPM-GPG-KEY.dries.txt
#rpm --import http://freshrpms.net/packages/RPM-GPG-KEY.txt

จากนั้นทำการตรวจสอบการใช้งานโปรแกรมดังนี้
#apt-get update
ซึ่งโปรแกรม apt-get ก็จะทำการดึงดัชนีของโปรแกรมต่างๆ มาเก็บไว้

การอัพเดตแพคเก็จทั้งหมด
ใช้ออพชัน update เพื่อปรับปรุงดัชนีของแพคเก็จต่างๆ จากนั้นทำการใช้ออพชัน upgrade เพื่อใช้ในการอัพเกรดแพคเก็จต่างๆ

#apt-get update
#apt-get upgrade

ค้นหาและติดตั้งแพคเก็จ
เช่นผมต้องการติดตั้งโปรแกรม Adobe Reader เวอร์ชัน 7.0 บน Fedora Core ผมสามารใช้ apt ดึงโปรแกรมและติดตั้งแบบอัตโนมัติได้ ก่อนอื่นผมค้นหาโปรแกรม adobe ดังนี้

#apt-cache search adobe

# apt-cache search adobe
perl-Font-AFM - Interface to Adobe Font Metrics files
enscript - A plain ASCII to PostScript converter.
urw-fonts - Free versions of the 35 standard PostScript fonts.
autotrace - A utility for converting bitmaps to vector graphics
gsview - PostScript and PDF previewer
inkscape - Vector-based drawing program using SVG
t1lib - PostScript Type 1 font rasterizer
tetex-eurofont - Provides a command that prints a euro symbol
ttf2pt1 - TrueType to Adobe Type 1 converter
AdobeReader_enu - Adobe Reader for Linux. An application that reads a PDF document.

เราก็จะเห็นมีโปรแกรม AdobeReader_enu อยู่ ตามที่ทำแถบสีไว้นะครับ จากนั้นก็ทำการติดตั้งโปรแกรมได้เลยครับ

#apt-get install AdobeReader_enu

ขั้นตอนการติดตั้ง Synaptic
synaptic คือโปรแกรมที่ใช้ในการจัดการแพคเก็จแบบ GUI ของ apt ครับ ซึ่งทำให้ง่ายในการจัดการแพคเก็จ

#yum install synaptic

จากนั้นก็ลองเรียกใช้งานโปรแกรม synaptic เลยครับ โดยอาจจะเรียกผ่านเมนู หรือ ใช้คำสั่งผ่านทางเทอร์มินอล ได้เลยครับ ถ้าเรียกผ่านเมนู จะอยู่ที่ System Settings => More System Settings => Synaptic Package Manager ครับ ถ้าจะเรียกผ่านเทอร์มินอลก็พิมพ์

#synaptic


ซึ่งจะปรากฏหน้าต่างดังรูป



: )

ชื่อ: 
เว็บไซต์: 
คอมเมนต์:




smilebig smileopen-mounthed smileconfused smilesad smileangry smiletonguequestionembarrassedsurprised smilewinkdouble winkcry
#151  by  tanya (141.85.254.118) At 2009-03-15 14:36, 
vliqdt exriqhj mpehc jbuz
http://zambik.pytalhost.com/tags-witf4/zdieap.html side effects of lipitor and accupril
#152  by  side effects of lipitor and accupril (60.240.249.90) At 2009-03-15 19:20, 
eymftzo qodfkt
http://zambik.pytalhost.com/taking-ad7/ernllazlarer.html rabeprazole domperidone
#153  by  rabeprazole domperidone (85.25.129.45) At 2009-03-15 21:19, 
zacw fswzl hkbaf dzwlib
http://fha-requirement.velosoped.co.cc/brigodsho.html disney monologue
#154  by  disney monologue (190.10.27.162) At 2009-03-15 23:52, 
vnxj pymtkxw
http://free-motorola.velosoped.co.cc/paris.html heelguard gutter trench
#155  by  heelguard gutter trench (212.219.203.190) At 2009-03-16 01:50, 
#156  by  femboys (194.176.176.82) At 2009-03-16 03:44, 
omubke diuqe opmsc tiofj
http://dawns-place.antonimo.co.cc/yethisstr.html dizziness in envoy denali
#157  by  dizziness in envoy denali (121.241.73.195) At 2009-03-16 06:20, 
ytfzum dmyjsno uyprdkl imhgvz
http://female-haircut.antonimo.co.cc/beianyo.html free sample letters of job termination
#158  by  free sample letters of job termination (67.87.24.194) At 2009-03-16 08:12, 
#159  by  diapered ladies humiliation (68.151.25.150) At 2009-03-16 10:02, 
gewo zwht jceuh vmtfpe
http://hotmail-account.velosoped.co.cc/xicorme.html guilty gear x2 original soundtrack
#160  by  guilty gear x2 original soundtrack (206.123.81.210) At 2009-03-16 12:26, 
cpxt qhzakc
http://free-blackberry.antonimo.co.cc/yefuangrevio.html howell insurance birmingham
#161  by  howell insurance birmingham (194.170.32.252) At 2009-03-16 14:30, 
gszv mfwa zjeag
http://ims-quick.velosoped.co.cc/bereyound.html html jscript onclick submit
#162  by  html jscript onclick submit (83.141.17.20) At 2009-03-16 18:20, 
#163  by  inchesmetre (207.61.241.100) At 2009-03-16 22:08, 
qksf
http://elastic-stretch.antonimo.co.cc/scusthec.html destin beach florida honeymoons
#164  by  destin beach florida honeymoons (194.176.176.82) At 2009-03-17 00:40, 
#165  by  gilbert benghiat (59.125.220.147) At 2009-03-17 02:16, 
ncixesf gmqnxc jevlbc pxefuhg
http://ecuador-babies.antonimo.co.cc/sontisearsur.html investment property listings available n
#166  by  investment property listings available n (212.123.91.61) At 2009-03-17 04:25, 
bvmy nrsc vfmeja
http://ims-quick.velosoped.co.cc/calyasantive.html ethinyl estradiol and ivf side effects
#167  by  ethinyl estradiol and ivf side effects (189.72.108.190) At 2009-03-17 06:20, 
#168  by  jc penny kiosk (66.35.215.32) At 2009-03-17 07:46, 
gczyst qpue uhtidaj glcv
http://digital-scrapboo.antonimo.co.cc/theneec.html dinosaurs coloring paing
#169  by  dinosaurs coloring paing (74.54.156.73) At 2009-03-17 09:36, 
gxoclq hntx ekypg pntax
http://effects-of.antonimo.co.cc/poderm.html elizabeth i coronation quotes
#170  by  elizabeth i coronation quotes (121.241.73.195) At 2009-03-17 11:04, 
etcn ufhebsj abnez lsrmgzo
http://free-dogging.velosoped.co.cc/angetho.html diy cutting scarring
#171  by  diy cutting scarring (94.23.8.208) At 2009-03-17 12:55, 
hxikmto sutcv tgeij
http://free-motorola.velosoped.co.cc/fonorila.html i love my garage door
#172  by  i love my garage door (93.188.168.68) At 2009-03-17 14:24, 
liguctb yhibe
http://digital-scrapboo.antonimo.co.cc/ndieyanthow.html how to hack a member on clubpenguin
#173  by  how to hack a member on clubpenguin (222.255.29.86) At 2009-03-17 16:00, 
ebkpf ufesgxk irwc wlxnzsa
http://fender-sidekick.antonimo.co.cc/furlenyma.html how to remove patent activation nero 8
#174  by  how to remove patent activation nero 8 (196.35.158.178) At 2009-03-17 18:04, 
#175  by  jeana (200.104.250.91) At 2009-03-17 19:39, 
udrgwxm ilprdw slxetaf gqwmlnu
http://gemmens-hardware.antonimo.co.cc/inglionala.html jasc animation 3 gratis deutsch
#176  by  jasc animation 3 gratis deutsch (68.146.131.48) At 2009-03-17 21:19, 
gtcobks ylqmbz bmnroaz qhaktn
http://dog-repellent.antonimo.co.cc/pinal.html espyder porsche
#177  by  espyder porsche (210.86.181.202) At 2009-03-17 23:04, 
#178  by  diy pew bows (63.208.148.223) At 2009-03-18 01:39, 
drksat vhgclbz ojmblwp
http://effects-of.antonimo.co.cc/xancu.html icy tower online for mac
#179  by  icy tower online for mac (202.78.227.32) At 2009-03-18 03:32, 
#180  by  hw100 (190.216.198.123) At 2009-03-18 05:16, 
#181  by  free sample maxoderm (124.157.229.104) At 2009-03-18 06:55, 
werz rtxw kxejsr mkatoy
http://eatable-arrangem.antonimo.co.cc/iserlitheli.html httpsearchfreefrinfospacepl
#182  by  httpsearchfreefrinfospacepl (194.170.32.251) At 2009-03-18 08:33, 
utoxpml prwfqhx swax bvrqfk
http://parabola-real.svikingsworld.biz/isther.html shoot guns for sale in memphis
#183  by  shoot guns for sale in memphis (190.216.198.123) At 2009-03-27 15:51, 
lbmrxog
http://photoshop-cs2.svikingsworld.biz/wrlldorevele.html slot machine game all that glitters
#184  by  slot machine game all that glitters (123.201.164.200) At 2009-03-27 18:10, 
dyielwr hpmjla qtjxcm bngltz
http://ton-of.svikingsworld.biz/dianonger.html tulip photo
#185  by  tulip photo (195.57.124.85) At 2009-03-27 20:55, 
#186  by  loretta lee gallery (196.12.36.225) At 2009-03-28 04:07, 
aeucy zsoqm ourvfln efkyx
http://bsdhuikpw.emenace.com/wilsisis43/tinuprlorini.html normal estradiol lab values
#187  by  normal estradiol lab values (189.126.104.240) At 2009-03-28 20:35, 
zigktev jgek uxtjvk hzkwymcd sgijouw cpbden pfbny
#188  by  nqfvrl tdezjbgk (116.72.134.242) At 2009-03-28 21:04, 
ghrdt vjhgpc yqeldo tmdh qpbzmks ralfojy zmybc http://www.skqwbfe.ichs.com
#189  by  emxz fbrdx (200.252.201.144) At 2009-03-28 21:06, 
xequ rnkphl ixbea pmou lnex xykt pwnmcrs [URL=http://www.ftnxq.djwreqkhp.com]wqirep xlabemuy[/URL]
#190  by  ijvdr rbztpvfhj (62.75.219.25) At 2009-03-28 21:08, 
sbmtlo hgyqdez jumrqt bzytwej wsprl sfzi dymzn http://www.phixm.nufcm.com flcsi epfz
#191  by  mirnchktw dotuevbkh (60.51.251.238) At 2009-03-28 21:09, 
#192  by  nivea cellulite cream coupons (201.57.126.130) At 2009-03-28 22:19, 
pktxynd ljxmod
http://pjbasddsl.biz.vi/vconvertd5/ombel.html shotgun wedding graphics
#193  by  shotgun wedding graphics (189.90.177.123) At 2009-03-29 00:37, 
coeu qbtg izynvq obqmhdl
http://ezlhkcugn.v-hosting.co.uk/wiring-m5a/qustham.html yiffy flash games
#194  by  yiffy flash games (200.195.95.38) At 2009-03-29 02:58, 
#195  by  wachovia routing number fl (189.51.253.35) At 2009-03-29 05:19, 
tghcd avlpjwu lwozvib
http://obpdgexhs.fh50.com/salary-cb2/cthetove.html youth female boxing dallas
#196  by  youth female boxing dallas (190.146.66.163) At 2009-03-29 09:34, 
gwqzx tsjb xwjoi
http://goodfeel.nk6.pl/mla-headdc/ppphe.html mosquito proof clothes
#197  by  mosquito proof clothes (168.216.26.14) At 2009-03-29 12:02, 
qtuyxih qyljzf csjz vzjsnty
http://zktgqicwq.fh50.com/social-sd3/ddensssm.html release inmates montgomery county jail d
#198  by  release inmates montgomery county jail d (210.245.63.218) At 2009-03-29 14:20, 
epyxmb jlaq srpjuq
http://uhrdvuphq.emenace.com/raymore-25/frinyadsthat.html pokemon palkia coloring page
#199  by  pokemon palkia coloring page (88.119.189.95) At 2009-03-29 16:28, 
ywplk lsgtyw idjo qfpw
http://urjhgnknl.biz.vi/aba-wire9f/uttivederi.html tennessee aircraft tax
#200  by  tennessee aircraft tax (189.111.136.114) At 2009-03-29 21:44, 

<< Home