25 ຄຳ ສັ່ງພື້ນຖານທີ່ມີປະໂຫຍດຂອງ APT-GET ແລະ APT-CACHE ສຳ ລັບການຄຸ້ມຄອງການຫຸ້ມຫໍ່


ບົດຂຽນນີ້ອະທິບາຍເຖິງວິທີທີ່ທ່ານສາມາດຮຽນຮູ້ທີ່ຈະຕິດຕັ້ງ, ກຳ ຈັດ, ປັບປຸງແລະຄົ້ນຫາຊຸດຊອບແວໂດຍໃຊ້ ຄຳ ສັ່ງ apt-get ແລະ apt-cache ຈາກເສັ້ນ ຄຳ ສັ່ງ. ບົດຂຽນນີ້ສະ ເໜີ ບາງ ຄຳ ສັ່ງທີ່ເປັນປະໂຫຍດເຊິ່ງຈະຊ່ວຍໃຫ້ທ່ານສາມາດຈັດການກັບການຈັດການຊຸດຕ່າງໆໃນລະບົບທີ່ອີງໃສ່ Debian/Ubuntu.

Apt-get utility ແມ່ນໂປແກຼມສາຍ ຄຳ ສັ່ງການຈັດການຊຸດທີ່ມີປະສິດທິພາບແລະບໍ່ເສຍຄ່າ, ເຊິ່ງໃຊ້ເພື່ອເຮັດວຽກກັບຫ້ອງສະມຸດ APT (Advanced Packaging Tool) ຂອງ Ubuntu ເພື່ອ ດຳ ເນີນການຕິດຕັ້ງແພັກເກດຊອບແວ ໃໝ່, ຖອດຊຸດຊອບແວທີ່ມີຢູ່, ຍົກລະດັບແພັກເກດຊອບແວທີ່ມີຢູ່ແລະແມ້ແຕ່ ໃຊ້ເພື່ອຍົກລະດັບລະບົບປະຕິບັດການທັງ ໝົດ.

ເຄື່ອງມືສາຍ ຄຳ ສັ່ງ apt-cache ແມ່ນໃຊ້ ສຳ ລັບການຄົ້ນຫາ cache cache package package software. ໃນຄໍາສັບທີ່ງ່າຍດາຍ, ເຄື່ອງມືນີ້ແມ່ນໃຊ້ໃນການຄົ້ນຫາແພັກເກດຊອບແວ, ເກັບ ກຳ ຂໍ້ມູນຂອງແພັກເກັດຕ່າງໆແລະຍັງໃຊ້ເພື່ອຄົ້ນຫາສິ່ງທີ່ມີໃຫ້ກຽມພ້ອມ ສຳ ລັບຕິດຕັ້ງໃນລະບົບທີ່ອີງໃສ່ Debian ຫຼື Ubuntu.

1. ຂ້ອຍຈະລະບຸທຸກຊຸດທີ່ມີຢູ່ໄດ້ແນວໃດ?

ເພື່ອບອກທຸກຊຸດທີ່ມີຢູ່, ພິມ ຄຳ ສັ່ງຕໍ່ໄປນີ້.

$ apt-cache pkgnames
esseract-ocr-epo
pipenightdreams
mumudvb
tbb-examples
libsvm-java
libmrpt-hmtslam0.9
libboost-timer1.50-dev
kcm-touchpad
g++-4.5-multilib
...

2. ຂ້ອຍຈະຊອກຫາຊື່ແພັກເກດແລະລາຍລະອຽດຂອງຊອບແວໄດ້ແນວໃດ?

ເພື່ອຊອກຫາຊື່ແພັກເກດແລະດ້ວຍ ຄຳ ອະທິບາຍກ່ອນຕິດຕັ້ງ, ໃຫ້ໃຊ້ 'ຄົ້ນຫາ' ທຸງ. ການໃຊ້“ ຄົ້ນຫາ” ກັບ apt-cache ຈະສະແດງລາຍຊື່ຂອງແພັກເກັດທີ່ຈັບຄູ່ກັບ ຄຳ ອະທິບາຍສັ້ນໆ. ບອກວ່າທ່ານຕ້ອງການຊອກຫາ ຄຳ ອະທິບາຍກ່ຽວກັບຊຸດ 'vsftpd', ຫຼັງຈາກນັ້ນ ຄຳ ສັ່ງກໍ່ຈະເປັນໄປໄດ້.

$ apt-cache search vsftpd
vsftpd - lightweight, efficient FTP server written for security
ccze - A robust, modular log coloriser
ftpd - File Transfer Protocol (FTP) server
yasat - simple stupid audit tool

ເພື່ອຊອກຫາແລະລົງບັນຊີທຸກຊຸດທີ່ເລີ່ມຕົ້ນດ້ວຍ 'vsftpd', ທ່ານສາມາດໃຊ້ ຄຳ ສັ່ງຕໍ່ໄປນີ້.

$ apt-cache pkgnames vsftpd
vsttpd

3. ຂ້ອຍຈະກວດສອບຂໍ້ມູນກ່ຽວກັບການຫຸ້ມຫໍ່ແນວໃດ?

ຕົວຢ່າງ: ຖ້າທ່ານຕ້ອງການກວດສອບຂໍ້ມູນຂອງຊຸດພ້ອມກັບ ຄຳ ອະທິບາຍສັ້ນໆທີ່ເວົ້າວ່າ (ໝາຍ ເລກຮຸ່ນ, ຈຳ ນວນການກວດ, ຂະ ໜາດ, ຂະ ໜາດ ທີ່ຕິດຕັ້ງ, ໝວດ ໝູ່ ແລະອື່ນໆ). ໃຊ້ ‘ສະແດງ’ ຄຳ ສັ່ງຍ່ອຍຕາມຮູບຂ້າງລຸ່ມ.

$ apt-cache show netcat
Package: netcat
Priority: optional
Section: universe/net
Installed-Size: 30
Maintainer: Ubuntu Developers <[email >
Original-Maintainer: Ruben Molina <[email >
Architecture: all
Version: 1.10-40
Depends: netcat-traditional (>= 1.10-39)
Filename: pool/universe/n/netcat/netcat_1.10-40_all.deb
Size: 3340
MD5sum: 37c303f02b260481fa4fc9fb8b2c1004
SHA1: 0371a3950d6967480985aa014fbb6fb898bcea3a
SHA256: eeecb4c93f03f455d2c3f57b0a1e83b54dbeced0918ae563784e86a37bcc16c9
Description-en: TCP/IP swiss army knife -- transitional package
 This is a "dummy" package that depends on lenny's default version of
 netcat, to ease upgrades. It may be safely removed.
Description-md5: 1353f8c1d079348417c2180319bdde09
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu

4. ຂ້ອຍຈະກວດສອບການເພິ່ງພາອາໃສ ສຳ ລັບແພັກເກດສະເພາະແນວໃດ?

ໃຊ້ ຄຳ ສັ່ງຍ່ອຍ 'showpkg' ເພື່ອກວດສອບຄວາມເພິ່ງພາອາໄສ ສຳ ລັບແພັກເກດຊອບແວໂດຍສະເພາະ. ບໍ່ວ່າຈະເປັນຊຸດຄວາມເພິ່ງພາອາໄສເຫຼົ່ານັ້ນທີ່ຕິດຕັ້ງຫຼືບໍ່. ຍົກຕົວຢ່າງ, ໃຊ້ ຄຳ ສັ່ງ ‘showpkg’ ພ້ອມກັບຊື່ແພັກເກດ.

$ apt-cache showpkg vsftpd
Package: vsftpd
Versions: 
2.3.5-3ubuntu1 (/var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_quantal_main_binary-i386_Packages)
 Description Language: 
                 File: /var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_quantal_main_binary-i386_Packages
                  MD5: 81386f72ac91a5ea48f8db0b023f3f9b
 Description Language: en
                 File: /var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_quantal_main_i18n_Translation-en
                  MD5: 81386f72ac91a5ea48f8db0b023f3f9b

Reverse Depends: 
  ubumirror,vsftpd
  harden-servers,vsftpd
Dependencies: 
2.3.5-3ubuntu1 - debconf (18 0.5) debconf-2.0 (0 (null)) upstart-job (0 (null)) libc6 (2 2.15) libcap2 (2 2.10) libpam0g (2 0.99.7.1) libssl1.0.0 (2 1.0.0) libwrap0 (2 7.6-4~) adduser (0 (null)) libpam-modules (0 (null)) netbase (0 (null)) logrotate (0 (null)) ftp-server (0 (null)) ftp-server (0 (null)) 
Provides: 
2.3.5-3ubuntu1 - ftp-server 
Reverse Provides:

5. ຂ້ອຍຈະກວດສອບສະຖິຕິຂອງ Cache ໄດ້ແນວໃດ

ຄຳ ສັ່ງຍ່ອຍທີ່ຢູ່ 'stats' ຈະສະແດງສະຖິຕິໂດຍລວມກ່ຽວກັບ cache. ຕົວຢ່າງ, ຄຳ ສັ່ງຕໍ່ໄປນີ້ຈະສະແດງຊື່ແພັກເກດທັງ ໝົດ ແມ່ນ ຈຳ ນວນແພັກທີ່ໄດ້ພົບໃນ cache.

$ apt-cache stats
Total package names: 51868 (1,037 k)
Total package structures: 51868 (2,490 k)
  Normal packages: 39505
  Pure virtual packages: 602
  Single virtual packages: 3819
  Mixed virtual packages: 1052
  Missing: 6890
Total distinct versions: 43015 (2,753 k)
Total distinct descriptions: 81048 (1,945 k)
Total dependencies: 252299 (7,064 k)
Total ver/file relations: 45567 (729 k)
Total Desc/File relations: 81048 (1,297 k)
Total Provides mappings: 8228 (165 k)
Total globbed strings: 286 (3,518 )
Total dependency version space: 1,145 k
Total slack space: 62.6 k
Total space accounted for: 13.3 M

6. ວິທີການປັບປຸງການຫຸ້ມຫໍ່ລະບົບ

ຄຳ ສັ່ງ ‘ປັບປຸງ ໃໝ່’ ແມ່ນໃຊ້ເພື່ອປັບຂໍ້ມູນແຟ້ມດັດສະນີຊຸດຈາກແຫຼ່ງຂໍ້ມູນທີ່ລະບຸໄວ້ໃນເອກະສານ /etc/apt/sources.list. ຄຳ ສັ່ງປັບປຸງໄດ້ດຶງເອົາແພັກເກດຈາກສະຖານທີ່ຂອງພວກເຂົາແລະປັບປຸງຊຸດໃຫ້ເປັນລຸ້ນ ໃໝ່.

$ sudo apt-get update
[sudo] password for tecmint: 
Ign http://security.ubuntu.com quantal-security InRelease                      
Get:1 http://security.ubuntu.com quantal-security Release.gpg [933 B]          
Get:2 http://security.ubuntu.com quantal-security Release [49.6 kB]            
Ign http://in.archive.ubuntu.com quantal InRelease                             
Ign http://in.archive.ubuntu.com quantal-updates InRelease                     
Get:3 http://repo.varnish-cache.org precise InRelease [13.7 kB]                
Ign http://in.archive.ubuntu.com quantal-backports InRelease                   
Hit http://in.archive.ubuntu.com quantal Release.gpg                           
Get:4 http://security.ubuntu.com quantal-security/main Sources [34.8 kB]       
Get:5 http://in.archive.ubuntu.com quantal-updates Release.gpg [933 B]         
...

7. ວິທີການຍົກລະດັບການຫຸ້ມຫໍ່ຊອບແວ

ຄຳ ສັ່ງ“ ຍົກລະດັບ ‘ຖືກໃຊ້ເພື່ອຍົກລະດັບໂປແກຼມໂປແກຼມທີ່ຕິດຕັ້ງໃນປະຈຸບັນທັງ ໝົດ ໃນລະບົບ. ພາຍໃຕ້ສະຖານະການໃດກໍ່ຕາມແພັກເກດທີ່ຖືກຕິດຕັ້ງໃນປະຈຸບັນບໍ່ຖືກຖອດອອກຫລືແພັກເກດທີ່ບໍ່ໄດ້ຕິດຕັ້ງແລ້ວບໍ່ໄດ້ມາແລະຕິດຕັ້ງເພື່ອຕອບສະ ໜອງ ຄວາມເພິ່ງພາການຍົກລະດັບ.

$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  linux-headers-generic linux-image-generic wine1.5 wine1.5-i386
The following packages will be upgraded:
  activity-log-manager-common activity-log-manager-control-center adium-theme-ubuntu alacarte
  alsa-base app-install-data-partner appmenu-gtk appmenu-gtk3 apport apport-gtk apt
  apt-transport-https apt-utils aptdaemon aptdaemon-data at-spi2-core bamfdaemon base-files bind9-host
   ...

ເຖິງຢ່າງໃດກໍ່ຕາມ, ຖ້າທ່ານຕ້ອງການຍົກລະດັບ, ບໍ່ສົນໃຈວ່າແພັກເກດຊອບແວຈະຖືກເພີ່ມຫລືລຶບອອກເພື່ອເຮັດໃຫ້ມີຄວາມເພິ່ງພາອາໃສ, ໃຫ້ໃຊ້ ຄຳ ສັ່ງຍ່ອຍ 'dist-upgrade'.

$ sudo apt-get dist-upgrade

8. ຂ້ອຍຈະຕິດຕັ້ງຫຼືຍົກລະດັບແພັກເກດສະເພາະແນວໃດ?

ຄຳ ສັ່ງຍ່ອຍ“ ຕິດຕັ້ງ ’ຖືກຕິດຕາມໂດຍຊຸດ ໜຶ່ງ ຫລືຫຼາຍຊຸດທີ່ຕ້ອງການຕິດຕັ້ງຫຼືຍົກລະດັບ.

$ sudo apt-get install netcat
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  netcat-traditional
The following NEW packages will be installed:
  netcat netcat-traditional
0 upgraded, 2 newly installed, 0 to remove and 328 not upgraded.
Need to get 67.1 kB of archives.
After this operation, 186 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://in.archive.ubuntu.com/ubuntu/ quantal/universe netcat-traditional i386 1.10-40 [63.8 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu/ quantal/universe netcat all 1.10-40 [3,340 B]
Fetched 67.1 kB in 1s (37.5 kB/s)
Selecting previously unselected package netcat-traditional.
(Reading database ... 216118 files and directories currently installed.)
Unpacking netcat-traditional (from .../netcat-traditional_1.10-40_i386.deb) ...
Selecting previously unselected package netcat.
Unpacking netcat (from .../netcat_1.10-40_all.deb) ...
Processing triggers for man-db ...
Setting up netcat-traditional (1.10-40) ...
Setting up netcat (1.10-40) ...

9. ຂ້ອຍສາມາດຕິດຕັ້ງຫລາຍແພັກເກດໄດ້ແນວໃດ?

ທ່ານສາມາດໃສ່ຊື່ແພັກເກັດຫຼາຍກ່ວາ ໜຶ່ງ ພ້ອມດ້ວຍ ຄຳ ສັ່ງເພື່ອຕິດຕັ້ງຫຼາຍໆແພັກເກັດພ້ອມໆກັນ. ຍົກຕົວຢ່າງ, ຄຳ ສັ່ງຕໍ່ໄປນີ້ຈະຕິດຕັ້ງແພກເກັດ ‘nethogs’ ແລະ ‘goaccess’.

$ sudo apt-get install nethogs goaccess
Reading package lists... Done
Building dependency tree       
Reading state information... Done
goaccess is already the newest version.
nethogs is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 328 not upgraded.

10. ວິທີການຕິດຕັ້ງຫລາຍແພັກເກດໂດຍໃຊ້ Wildcard

ດ້ວຍຄວາມຊ່ອຍເຫລືອຂອງການສະແດງອອກແບບປົກກະຕິທ່ານສາມາດເພີ່ມຫຼາຍຊຸດດ້ວຍ ໜຶ່ງ ເຊືອກ. ຍົກຕົວຢ່າງ, ພວກເຮົາໃຊ້ * ຕົວແທນແບບ ທຳ ມະຊາດເພື່ອຕິດຕັ້ງຫຼາຍໆແພັກເກດທີ່ປະກອບດ້ວຍ '* ຊື່ *' ເບິ່ງຊ່ອຍແນ່, ຊື່ຈະແມ່ນ 'package-name'.

$ sudo apt-get install '*name*'

11. ວິທີການຕິດຕັ້ງແພັກເກດໂດຍບໍ່ຕ້ອງຍົກລະດັບ

ການໃຊ້ ຄຳ ສັ່ງຍ່ອຍ ‘ບໍ່ຍົກລະດັບ' ຈະປ້ອງກັນບໍ່ໃຫ້ແພັກເກດທີ່ຕິດຕັ້ງແລ້ວຈາກການຍົກລະດັບ.

$ sudo apt-get install packageName --no-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Skipping vsftpd, it is already installed and upgrade is not set.
0 upgraded, 0 newly installed, 0 to remove and 328 not upgraded.

12. ວິທີການຍົກລະດັບພຽງແຕ່ແພັກເກດສະເພາະ

ຄຳ ສັ່ງ“ ຍົກລະດັບຍົກລະດັບ ‘ບໍ່ໄດ້ຕິດຕັ້ງແພັກເກດ ໃໝ່ ແຕ່ມັນພຽງແຕ່ຍົກລະດັບແພັກເກດທີ່ຕິດຕັ້ງແລ້ວແລະປິດການຕິດຕັ້ງຊຸດ ໃໝ່.

$ sudo apt-get install packageName --only-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
vsftpd is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 328 not upgraded.

13. ຂ້ອຍຈະຕິດຕັ້ງສະບັບແພັກເກັດສະເພາະແນວໃດ?

ໃຫ້ເວົ້າວ່າທ່ານຕ້ອງການຕິດຕັ້ງສະເພາະແພັກເກດສະເພາະ, ໃຊ້ພຽງແຕ່ '=' ພ້ອມຊື່ແພັກເກດແລະເພີ່ມໃສ່ ໜ້າ ຕາທີ່ຕ້ອງການ.

$ sudo apt-get install vsftpd=2.3.5-3ubuntu1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
vsftpd is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 328 not upgraded.

14. ຂ້ອຍຈະອອກແພກເກດແນວໃດໂດຍບໍ່ຕ້ອງຕັ້ງຄ່າ

ເພື່ອຕິດຕັ້ງໂປແກຼມໂປແກຼມທີ່ບໍ່ຕິດຕັ້ງໂດຍບໍ່ເອົາເອກະສານການຕັ້ງຄ່າຂອງພວກມັນອອກໄປ (ສຳ ລັບໃຊ້ການຕັ້ງຄ່າ ໃໝ່ ໃນພາຍຫລັງ). ໃຊ້ ຄຳ ສັ່ງ ‘ເອົາ’ ຕາມທີ່ສະແດງໄວ້.

$ sudo apt-get remove vsftpd
[sudo] password for tecmint: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  vsftpd
0 upgraded, 0 newly installed, 1 to remove and 328 not upgraded.
After this operation, 364 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 216156 files and directories currently installed.)
Removing vsftpd ...
vsftpd stop/waiting
Processing triggers for ureadahead ...
Processing triggers for man-db ...

15. ຂ້ອຍຈະຍ້າຍຊຸດອອກໄດ້ແນວໃດ

ເພື່ອ ກຳ ຈັດແພັກເກດຊອບແວລວມທັງແຟ້ມການຕັ້ງຄ່າຂອງພວກມັນ, ໃຫ້ໃຊ້ ຄຳ ສັ່ງຍ່ອຍ 'ກຳ ຈັດ' ຕາມທີ່ສະແດງຢູ່ດ້ານລຸ່ມ.

$ sudo apt-get purge vsftpd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  vsftpd*
0 upgraded, 0 newly installed, 1 to remove and 328 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 216107 files and directories currently installed.)
Removing vsftpd ...
Purging configuration files for vsftpd ...
Processing triggers for ureadahead ...

ອີກທາງເລືອກ ໜຶ່ງ, ທ່ານສາມາດສົມທົບ ຄຳ ສັ່ງທັງສອງຢ່າງພ້ອມກັນດັ່ງຮູບຂ້າງລຸ່ມນີ້.

$ sudo apt-get remove --purge vsftpd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  vsftpd*
0 upgraded, 0 newly installed, 1 to remove and 328 not upgraded.
After this operation, 364 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 216156 files and directories currently installed.)
Removing vsftpd ...
vsftpd stop/waiting
Purging configuration files for vsftpd ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...

16. ຂ້ອຍສາມາດເຮັດອະນາໄມພື້ນທີ່ Disk ໄດ້ແນວໃດ

ຄຳ ສັ່ງທີ່ ‘ສະອາດ’ ແມ່ນໃຊ້ເພື່ອເຮັດໃຫ້ພື້ນທີ່ຫວ່າງບໍ່ດີຂື້ນໂດຍການ ທຳ ຄວາມສະອາດໄຟລ໌ທີ່ເກັບມາ (ດາວໂຫລດ).

$ sudo apt-get clean

17. ຂ້ອຍຈະດາວໂຫລດພຽງແຕ່ລະຫັດແຫຼ່ງຂອງການຫຸ້ມຫໍ່ເທົ່າໃດ

ເພື່ອດາວໂຫລດພຽງແຕ່ລະຫັດແຫຼ່ງຂອງຊຸດສະເພາະ, ໃຊ້ຕົວເລືອກ 'ດາວໂລດແຫລ່ງທີ່ມາ' ດ້ວຍ 'ແພັກເກດຊື່' ເທົ່າທີ່ສະແດງ.

$ sudo apt-get --download-only source vsftpd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Need to get 220 kB of source archives.
Get:1 http://in.archive.ubuntu.com/ubuntu/ quantal/main vsftpd 2.3.5-3ubuntu1 (dsc) [1,883 B]
Get:2 http://in.archive.ubuntu.com/ubuntu/ quantal/main vsftpd 2.3.5-3ubuntu1 (tar) [188 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu/ quantal/main vsftpd 2.3.5-3ubuntu1 (diff) [30.5 kB]
Fetched 220 kB in 4s (49.1 kB/s)
Download complete and in download only mode

18. ຂ້ອຍສາມາດດາວໂລດແລະຫໍ່ຊຸດໄດ້ແນວໃດ

ເພື່ອດາວໂຫລດແລະຖອດລະຫັດແຫຼ່ງຂອງແພັກເກັດໄປທີ່ໄດເລກະທໍລີສະເພາະ, ພິມ ຄຳ ສັ່ງຕໍ່ໄປນີ້.

$ sudo apt-get source vsftpd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Need to get 220 kB of source archives.
Get:1 http://in.archive.ubuntu.com/ubuntu/ quantal/main vsftpd 2.3.5-3ubuntu1 (dsc) [1,883 B]
Get:2 http://in.archive.ubuntu.com/ubuntu/ quantal/main vsftpd 2.3.5-3ubuntu1 (tar) [188 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu/ quantal/main vsftpd 2.3.5-3ubuntu1 (diff) [30.5 kB]
Fetched 220 kB in 1s (112 kB/s)  
gpgv: Signature made Thursday 24 May 2012 02:35:09 AM IST using RSA key ID 2C48EE4E
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on ./vsftpd_2.3.5-3ubuntu1.dsc
dpkg-source: info: extracting vsftpd in vsftpd-2.3.5
dpkg-source: info: unpacking vsftpd_2.3.5.orig.tar.gz
dpkg-source: info: unpacking vsftpd_2.3.5-3ubuntu1.debian.tar.gz
dpkg-source: info: applying 01-builddefs.patch
dpkg-source: info: applying 02-config.patch
dpkg-source: info: applying 03-db-doc.patch
dpkg-source: info: applying 04-link-local.patch
dpkg-source: info: applying 05-whitespaces.patch
dpkg-source: info: applying 06-greedy.patch
dpkg-source: info: applying 07-utf8.patch
dpkg-source: info: applying 08-manpage.patch
dpkg-source: info: applying 09-s390.patch
dpkg-source: info: applying 10-remote-dos.patch
dpkg-source: info: applying 11-alpha.patch
dpkg-source: info: applying 09-disable-anonymous.patch
dpkg-source: info: applying 12-ubuntu-use-snakeoil-ssl.patch

19. ຂ້ອຍສາມາດດາວໂລດ, ຫໍ່ແລະຫໍ່ຊຸດໄດ້ແນວໃດ

ທ່ານຍັງສາມາດດາວໂລດ, ຫຍໍ້ແລະລວບລວມລະຫັດແຫຼ່ງຂໍ້ມູນໃນເວລາດຽວກັນ, ໂດຍໃຊ້ຕົວເລືອກ '‘ ຄອມພິວເຕີ້ 'ຕາມຮູບຂ້າງລຸ່ມ.

$ sudo apt-get --compile source goaccess
[sudo] password for tecmint: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Need to get 130 kB of source archives.
Get:1 http://in.archive.ubuntu.com/ubuntu/ quantal/universe goaccess 1:0.5-1 (dsc) [1,120 B]
Get:2 http://in.archive.ubuntu.com/ubuntu/ quantal/universe goaccess 1:0.5-1 (tar) [127 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu/ quantal/universe goaccess 1:0.5-1 (diff) [2,075 B]
Fetched 130 kB in 1s (68.0 kB/s)
gpgv: Signature made Tuesday 26 June 2012 09:38:24 AM IST using DSA key ID A9FD4821
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on ./goaccess_0.5-1.dsc
dpkg-source: info: extracting goaccess in goaccess-0.5
dpkg-source: info: unpacking goaccess_0.5.orig.tar.gz
dpkg-source: info: unpacking goaccess_0.5-1.debian.tar.gz
dpkg-buildpackage: source package goaccess
dpkg-buildpackage: source version 1:0.5-1
dpkg-buildpackage: source changed by Chris Taylor <[email >
dpkg-buildpackage: host architecture i386
 dpkg-source --before-build goaccess-0.5
dpkg-checkbuilddeps: Unmet build dependencies: debhelper (>= 9) autotools-dev libncurses5-dev libglib2.0-dev libgeoip-dev autoconf
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
...

20. ຂ້ອຍຈະດາວໂຫລດແພັກເກັດແນວໃດໂດຍບໍ່ຕ້ອງຕິດຕັ້ງ

ໂດຍໃຊ້ຕົວເລືອກ ‘ດາວໂຫລດ’, ທ່ານສາມາດດາວໂຫລດຊຸດໃດກໍ່ໄດ້ໂດຍບໍ່ຕ້ອງຕິດຕັ້ງມັນ. ຍົກຕົວຢ່າງ, ຄຳ ສັ່ງຕໍ່ໄປນີ້ພຽງແຕ່ຈະດາວໂຫລດແພັກເກັດ ‘nethogs’ ໄປຫາໄດເລກະທໍລີທີ່ເຮັດວຽກໃນປະຈຸບັນ.

$ sudo apt-get download nethogs
Get:1 Downloading nethogs 0.8.0-1 [27.1 kB]
Fetched 27.1 kB in 3s (7,506 B/s)

21. ຂ້ອຍຈະກວດເບິ່ງການປ່ຽນແປງບັນທຶກຂອງການຫຸ້ມຫໍ່ໄດ້ແນວໃດ?

ທຸງ 'changelog' ດາວໂຫລດບັນທຶກການປ່ຽນແປງຊຸດແລະສະແດງເວີຊັນແພັກເກດທີ່ຕິດຕັ້ງໄວ້.

$ sudo apt-get changelog vsftpd
vsftpd (2.3.5-3ubuntu1) quantal; urgency=low

  * Merge from Debian testing (LP: #1003644).  Remaining changes:
    + debian/vsftpd.upstart: migrate vsftpd to upstart.
    + Add apport hook (LP: #513978):
      - debian/vsftpd.apport: Added.
      - debian/control: Build-depends on dh-apport.
      - debian/rules: Add --with apport.
    + Add debian/watch file.
    + debian/patches/09-disable-anonymous.patch: Disable anonymous login
      by default. (LP: #528860)
  * debian/patches/12-ubuntu-us-snakeoil-ssl.patch: Use snakeoil SSL
    certificates and key.

 -- Andres Rodriguez <[email >  Wed, 23 May 2012 16:59:36 -0400
...

22. ຂ້ອຍຈະກວດເບິ່ງການເພິ່ງພາອາໃສທີ່ແຕກຫັກໄດ້ແນວໃດ?

ຄຳ ສັ່ງ“ ກວດສອບ ’ແມ່ນເຄື່ອງມືວິນິດໄສ. ມັນເຄີຍໃຊ້ເພື່ອປັບປຸງຖານຄວາມ ຈຳ ຂອງແພັກເກັດແລະກວດເບິ່ງຄວາມເພິ່ງພາອາໃສແຕກຫັກ.

$ sudo apt-get check
[sudo] password for tecmint: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done

23. ຂ້ອຍຈະຄົ້ນຫາແລະສ້າງຄວາມເພິ່ງພາອາໄສໄດ້ແນວໃດ?

ຄຳ ສັ່ງ“ ສ້າງແບບນີ້ 'ຄົ້ນຫາຫໍສະມຸດທ້ອງຖິ່ນໃນລະບົບແລະຕິດຕັ້ງເອກະສານເພິ່ງພາອາໄສ ສຳ ລັບຊຸດ ຖ້າແພັກເກດບໍ່ມີຢູ່ໃນບ່ອນເກັບມ້ຽນທ້ອງຖິ່ນມັນຈະກັບຄືນລະຫັດຜິດພາດ.

$ sudo apt-get build-dep netcat
The following NEW packages will be installed:
  debhelper dh-apparmor html2text po-debconf quilt
0 upgraded, 5 newly installed, 0 to remove and 328 not upgraded.
Need to get 1,219 kB of archives.
After this operation, 2,592 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://in.archive.ubuntu.com/ubuntu/ quantal/main html2text i386 1.3.2a-15build1 [91.4 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu/ quantal/main po-debconf all 1.0.16+nmu2ubuntu1 [210 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu/ quantal/main dh-apparmor all 2.8.0-0ubuntu5 [9,846 B]
Get:4 http://in.archive.ubuntu.com/ubuntu/ quantal/main debhelper all 9.20120608ubuntu1 [623 kB]
Get:5 http://in.archive.ubuntu.com/ubuntu/ quantal/main quilt all 0.60-2 [285 kB]
Fetched 1,219 kB in 4s (285 kB/s)
...

24. ຂ້ອຍສາມາດເຮັດຄວາມສະອາດ Apt-Get Cache ໄດ້ໂດຍອັດຕະໂນມັດແນວໃດ?

ຄຳ ສັ່ງ ‘autoclean’ ລຶບໄຟລ໌ທັງ ໝົດ .deb ຈາກ/var/cache/apt/archives ເພື່ອເພີ່ມປະລິມານທີ່ ສຳ ຄັນຂອງພື້ນທີ່ disk.

$ sudo apt-get autoclean
Reading package lists... Done
Building dependency tree       
Reading state information... Done

25. ຂ້ອຍສາມາດ ກຳ ຈັດແພັກທີ່ຕິດຕັ້ງໄດ້ໂດຍອັດຕະໂນມັດແນວໃດ?

ຄຳ ສັ່ງຍ່ອຍຂອງ "autoremove" ຖືກໃຊ້ເພື່ອ ກຳ ຈັດຊຸດທີ່ຖືກຕິດຕັ້ງແນ່ນອນເພື່ອຕອບສະ ໜອງ ຄວາມເພິ່ງພາອາໄສ ສຳ ລັບແພັກເກດອື່ນແລະແຕ່ດຽວນີ້ບໍ່ ຈຳ ເປັນຕ້ອງໃຊ້ອີກຕໍ່ໄປ. ຕົວຢ່າງ, ຄຳ ສັ່ງຕໍ່ໄປນີ້ຈະ ກຳ ຈັດຊຸດທີ່ຕິດຕັ້ງອອກມາພ້ອມກັບຄວາມເພິ່ງພາອາໄສຂອງມັນ.

$ sudo apt-get autoremove vsftpd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'vsftpd' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 328 not upgraded.

ຂ້ອຍໄດ້ກວມເອົາຫຼາຍທາງເລືອກທີ່ມີຢູ່ກັບ ຄຳ ສັ່ງ apt-get ແລະ apt-cache, ແຕ່ວ່າຍັງມີຫຼາຍທາງເລືອກຢູ່, ທ່ານສາມາດກວດເບິ່ງພວກມັນໂດຍໃຊ້ 'man apt-get' ຫຼື 'man apt-cache' ຈາກສະຖານີ. ຂ້າພະເຈົ້າຫວັງວ່າທ່ານຈະມັກອ່ານບົດຄວາມນີ້, ຖ້າຂ້ອຍຂາດສິ່ງໃດສິ່ງ ໜຶ່ງ ແລະເຈົ້າຢາກໃຫ້ຂ້ອຍເພີ່ມເຂົ້າໃນບັນຊີ. ກະລຸນາຮູ້ສຶກວ່າບໍ່ເສຍຄ່າທີ່ຈະກ່າວເຖິງໃນ ຄຳ ເຫັນຂ້າງລຸ່ມນີ້.

ອ່ານອີກ: 20 ຄຳ ສັ່ງ Linux YUM ທີ່ມີປະໂຫຍດ ສຳ ລັບການຈັດການການຫຸ້ມຫໍ່