คำสั่ง apt update คืออะไร?
23 May 2025
[caption id="attachment_25034" align="aligncenter" width="1024"] update and upgrade command line linux[/caption]
คำสั่ง apt update คืออะไร?
คำสั่งนี้ใช้ ดึงข้อมูลรายการแพ็กเกจเวอร์ชันล่าสุดจากแหล่งเก็บข้อมูล (repository)
sudo apt update
มันจะไปโหลดไฟล์ "รายการแพ็กเกจ" (package list) จาก repo ที่ระบุในไฟล์ /etc/apt/sources.list
ยัง ไม่ได้ติดตั้งหรืออัปเดตอะไร เพียงแค่รีเฟรช