विज्ञापन

क्रिप्टो एक्सचेंज बोनस पाएँ

सिर्फ़ साइन अप करने पर मिलने वाले बोनस। शर्तें हर एक्सचेंज की घोषणा से ज्यों की त्यों ली गई हैं।

apt update

पैकेज और रनटाइम

इस्तेमाल

sudo apt update

सिर्फ़ package सूचियाँ ताज़ा करता है, कुछ स्थापित या अद्यतन नहीं होता — उसके लिए apt upgrade चाहिए; नए container में सूची ख़ाली होती है, सो यही पहला आदेश है।

आम विकल्प

विकल्पअर्थ
apt upgradethe second half: actually install the newer versions
apt full-upgradeallow packages to be removed to finish the upgrade
apt list --upgradableshow what the refresh found
-qquieter output for logs and CI
--allow-releaseinfo-changeaccept a repository that renamed its suite

उदाहरण

sudo apt update

refreshes the package lists only

sudo apt update && sudo apt upgrade -y

refresh, then install the updates

apt list --upgradable

lists the packages that now have a newer version

सवाल हमेशा यही है कि क्या कहाँ जाए: इस प्रोजेक्ट के भीतर, या पूरी मशीन पर।

कैसे पढ़ें

  • बड़े कोष्ठक [ ] उस हिस्से को दिखाते हैं जिसे छोड़ा जा सकता है।
  • तीन बिंदु … का मतलब है एक से ज़्यादा दिए जा सकते हैं।
  • विकल्पों में बड़े-छोटे अक्षर मायने रखते हैं — कुछ कमांड में -r और -R अलग काम करते हैं।

आम सवाल

Qapt update क्या करता है?

सिर्फ़ package सूचियाँ ताज़ा करता है, कुछ स्थापित या अद्यतन नहीं होता — उसके लिए apt upgrade चाहिए; नए container में सूची ख़ाली होती है, सो यही पहला आदेश है।

Qइसे कैसे लिखें?

sudo apt update — बड़े कोष्ठक वह हिस्सा दिखाते हैं जो छोड़ा जा सकता है।

Qकितने विकल्प जानने लायक़ हैं?

यहाँ 5 दिए हैं; पूरी सूची man apt में है। यह कमांड पैकेज और रनटाइम में आती है।

मिलती-जुलती कमांड

man पेज: man apt-update