ค้นหาว่ามีการเปิดตัว Ubuntu ในบรรทัดคำสั่งหรือไม่


14

มีอะไรให้บอกจากบรรทัดคำสั่งเมื่อไม่มีการสนับสนุน Ubuntu อีกต่อไป? ฉันกำลังมองหาบางสิ่งเช่นนี้ (โดยไม่ต้องใช้ Google หรือ Wikipedia)

apt-release-support xenial

หรือแม้ว่ามันจะบอกฉันว่าdistro ของฉันรองรับหรือไม่

คำตอบ:


26

การรันubuntu-support-statusจะบอกคุณว่าการสนับสนุนนานที่สุดสำหรับทุกสิ่งที่คุณติดตั้งต่อไปนี้เป็นผลลัพธ์ของฉันเป็นตัวอย่าง:

Support status summary of 'ivory':

You have 1904 packages (75.7%) supported until April 2021 (5y)
You have 14 packages (0.6%) supported until January 2022 (5y)
You have 83 packages (3.3%) supported until April 2019 (3y)
You have 237 packages (9.4%) supported until January 2017 (9m)

You have 80 packages (3.2%) that can not/no-longer be downloaded
You have 197 packages (7.8%) that are unsupported

Run with --show-unsupported, --show-supported or --show-all to see more details

1
ดี! มันubuntu-support-status --show-allเจ๋งจริง ๆ ที่เห็นแอพทั้งหมดของคุณและนานแค่ไหนที่พวกเขาได้รับการสนับสนุนจนถึงหรือไม่ได้รับการสนับสนุนอีกต่อไป +1
Terrance

2
และจะสามารถสรุปสถานะการสนับสนุน Ubuntu ได้อย่างง่ายดายจากรายการแพ็คเกจดังกล่าวอย่างไร
ผู้บัญชาการ Byte

2

เรียกใช้hwe-support-statusเพื่อให้ได้ผลลัพธ์ที่ง่าย ใช้--verboseตัวเลือกมิฉะนั้นผู้ใช้จะเห็นอะไรถ้าระบบไม่ได้ใช้LTS Enablement กอง

ตัวอย่างผลลัพธ์ในรีลีส 14.04 พร้อมเคอร์เนลที่มีอยู่:

$ hwe-support-status
$ hwe-support-status --verbose
You are not running a system with a Hardware Enablement Stack. \
Your system is supported until April 2019.

คำสั่งดังกล่าวให้บริการโดยแพคเกจupdate-manager-coreบน Ubuntu ซึ่งเป็นแพ็คเกจเดียวกันที่ให้ubuntu-support-statusคำสั่ง

$ dpkg --search support-status
update-manager-core: /usr/bin/hwe-support-status
update-manager-core: /usr/bin/ubuntu-support-status

ผู้ใช้จะต้องใช้คำสั่งนี้: hwe-support-status --verbose

โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.