Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Linux

Master deb-get:A Powerful APT-Style Manager for DEB Packages

Master deb-get:A Powerful APT-Style Manager for DEB Packages

เผยแพร่เมื่อวันที่ 13 เมษายน 2023 เวลา 13:30 น. EDT

David เป็นนักเขียนอิสระที่มีพื้นฐานด้านวารสารศาสตร์สิ่งพิมพ์ และชื่นชอบซอฟต์แวร์ฟรีและโอเพ่นซอร์ส เขาใช้ Linux มาตั้งแต่ต้นปี 2000 และเป็นผู้สนับสนุนนิตยสาร Linux Format ในสหราชอาณาจักรเป็นประจำ เขาดูแลเว็บไซต์และบริการต่างๆ มากมายจาก Raspberry Pi ที่วางอยู่บนโซฟาในห้องนั่งเล่นอย่างล่อแหลม และไม่เคยพลาดโอกาสที่จะเรียนหลักสูตร edX ที่หลงทางเพื่อทำความเข้าใจเทคโนโลยี มนุษยชาติ และเรื่องอื่นๆ ที่เกี่ยวข้องให้ดียิ่งขึ้น

เดวิดเป็นนักกีตาร์ที่แย่มาก และเขาใช้เวลาว่างเที่ยวชมเกาะอังกฤษแบบนอกเส้นทาง พร้อมคาราวานและสุนัขของเขา บางครั้งเขาก็เขียนหนังสือ ไม่มีใครชอบพวกเขา ดูว่าเขากำลังทำอะไรอยู่ที่ davidrutland.com

ความสุขประการหนึ่งของการใช้ดิสโทรแบบ Debian และ Ubuntu คือ Advanced Package Tool (APT) ซึ่งช่วยให้คุณสามารถค้นหาแพ็คเกจออนไลน์ได้อย่างรวดเร็ว จากนั้นจึงติดตั้ง อัปเดต หรือลบแพ็คเกจด้วยคำสั่งเดียว

Another way of installing packages is using DEB files. You can find these on random sites across the internet, and to update them you need to re-download and install the newest version.

deb-get is a tool that aims to replicate APT functionality. You can use it to search dedicated DEB repositories and install, update, and remove software—just like APT.

APT Is the Gold Standard Package Manager for Debian-Based Distros

Master deb-get:A Powerful APT-Style Manager for DEB Packages

When you're first getting to grips with Debian or Ubuntu, APT is an amazing tool. ตามค่าเริ่มต้น คุณจะสามารถติดตั้งแพ็คเกจ FOSS ที่สนับสนุน Canonical หลายพันรายการจากพื้นที่เก็บข้อมูลหลัก รวมถึงโครงการ FOSS ที่ได้รับการสนับสนุนจากชุมชนนับหมื่นจากพื้นที่เก็บข้อมูล Universe

การติดตั้งแพ็คเกจและการขึ้นต่อกันทั้งหมดนั้นทำได้ง่ายเพียงแค่เปิดเทอร์มินัลแล้วป้อน:

sudo apt-get install package-name

You're not restricted to these two repositories either. นอกจากนี้ยังมีพื้นที่เก็บข้อมูลแบบจำกัดซึ่งประกอบด้วยซอฟต์แวร์ที่ไม่ฟรีที่ได้รับการสนับสนุนอย่างเป็นทางการ เช่น ไดรเวอร์และตัวแปลงสัญญาณ และพื้นที่เก็บข้อมูล Multiverse ซึ่งมีซอฟต์แวร์ที่ไม่ฟรีหรือได้รับการสนับสนุนอย่างเป็นทางการ

As if that wasn't enough, it's simple to add third-party Personal Package Archives (PPAs) and use APT to install software from them.

If the repository names above confuse you, you need to learn more about the different types of software repositories available on Ubuntu.

ทำไมต้องติดตั้งซอฟต์แวร์โดยใช้แพ็คเกจ DEB

As awesome as the APT tool is, it does have some drawbacks. ซอฟต์แวร์ไม่ได้ถูกบรรจุในลักษณะนี้เสมอไป ซึ่งหมายความว่าแอพที่คุณต้องการอาจหายไป และแพ็คเกจในคลังข้อมูลก็ไม่ได้อัปเดตเสมอไป

หากคุณกำลังค้นหาโปรเจ็กต์เจ๋งๆ และน่าสนใจบน GitHub เพื่อทดลองใช้บนระบบ Debian หรือ Ubuntu ของคุณ คุณมักจะพบว่าเครื่องมือที่คุณต้องการทดสอบนั้นมีให้ใช้งานในรูปแบบไบนารีจำนวนมากในหน้าเผยแพร่เท่านั้น

Sometimes developers won't even bother posting their DEB files to GitHub, pinning them instead to a personal website on a private server. This can be problematic if you want to stay with the most current version.

แต่การติดตั้งไฟล์ DEB หมายความว่าคุณต้องจับตาดู README และหน้าดาวน์โหลดโดยตรงที่คุณพบไฟล์ It's tedious, and something you'll barely ever do unless you have to.

deb-get gives you the functionality of apt-get, meaning that you'll never have to worry about installing or updating your DEBs again!

วิธีการติดตั้ง deb-get บน Linux

Master deb-get:A Powerful APT-Style Manager for DEB Packages

As you don't yet have deb-get installed, you can't use it to install itself. Instead, use the curl command and pipe the installation script to Bash.

ขั้นแรก ติดตั้ง curl ด้วย:

sudo apt install curl

Now run the following command to install deb-get:

curl -sL https://raw.githubusercontent.com/wimpysworld/deb-get/main/deb-get | sudo -E bash -s install deb-get

Use deb-get to Keep Up to Date With the Latest DEB Releases

Master deb-get:A Powerful APT-Style Manager for DEB Packages

If you're familiar with APT, you'll be at home with deb-get.

The first thing you should do is update the list of installed and available software in the repositories using:

deb-get update

To search for a particular package or app, use:

deb-get search packagename

For instance, if you want to find the excellent Lutris PC games manager for Linux, you would enter:

deb-get search lutris

Having found the package you want, install it with:

sudo deb-get install packagename

deb-get will fetch and install the package and its dependencies.

Install as much software as you like, then resynchronize it with:

deb-get update

If there's installed software that needs to be upgraded, use the upgrade command:

sudo deb-get upgrade 

คุณสามารถติดตั้งแต่ละแพ็คเกจใหม่ด้วย:

sudo deb-get reinstall packagename

มีคำสั่ง deb-get อีกมากมายให้เลือกใช้ Check them out in the deb-get usage documentation.

deb-get ทำให้การติดตั้งและอัปเดต DEB Binaries บน Ubuntu เป็นเรื่องง่าย

It's great to be able to install DEB packages on Ubuntu without having to worry that you're using an old or out-of-date version.

There are plenty of other ways to install software on Linux including compiling from source, Flatpaks, snaps, or AppImages.