उपयुक्त फ़ाइल अद्यतन क्या है?


13

मैं इन निर्देशों का पालन कर रहा था और मैंने apt-fileकुछ अन्य पैकेजों का उपयोग करके स्थापित किया है :

sudo apt-get install gnupg pbuilder ubuntu-dev-tools bzr-builddeb apt-file

और अब हर बार जब मैं अपने कंप्यूटर को स्टार्टअप करता हूं तो मुझे यह सूचना मिलती है:

उपयुक्त फ़ाइल अद्यतन की जरूरत नोटिस

इसलिए मैं अंत में टर्मिनल में गया और कमांड टाइप किया:

apt-file update

और मुझे यह आउटपुट मिला:

apt-file is now using the user's cache directory.
If you want to switch back to the system-wide cache directory,
 run 'apt-file purge'
Downloading complete file http://gb.archive.ubuntu.com/ubuntu/dists/utopic/Contents-amd64.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 94 29.6M   94 27.8M    0     0   667k      0  0:00:45  0:00:42  0:00:03 97 29.6M   97 28.8M    0     0   677k      0  0:00:44  0:00:43  0:00:01 99 29.6M   99 29.5M    0     0   678k      0  0:00:44  0:00:44 --:--:--100 29.6M  100 29.6M    0     0   678k      0  0:00:44  0:00:44 --:--:--  738k
Downloading complete file http://gb.archive.ubuntu.com/ubuntu/dists/utopic-updates/Contents-amd64.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:-- 11 3134k   11  367k    0     0   480k      0  0:00:06 --:--:--  0:00:06 35 3134k   35 1101k    0     0   623k      0  0:00:05  0:00:01  0:00:04 53 3134k   53 1685k    0     0   609k      0  0:00:05  0:00:02  0:00:03 75 3134k   75 2373k    0     0   630k      0  0:00:04  0:00:03  0:00:01 99 3134k   99 3105k    0     0   651k      0  0:00:04  0:00:04 --:--:--100 3134k  100 3134k    0     0   652k      0  0:00:04  0:00:04 --:--:--  684k
Downloading Index http://gb.archive.ubuntu.com/ubuntu/dists/utopic/Contents-amd64.diff/Index:
No Index available.
Downloading complete file http://gb.archive.ubuntu.com/ubuntu/dists/utopic/Contents-amd64.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
File is up-to-date.
Downloading Index http://gb.archive.ubuntu.com/ubuntu/dists/utopic-updates/Contents-amd64.diff/Index:
No Index available.
Downloading complete file http://gb.archive.ubuntu.com/ubuntu/dists/utopic-updates/Contents-amd64.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
File is up-to-date.
Downloading complete file http://gb.archive.ubuntu.com/ubuntu/dists/utopic-backports/Contents-amd64.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--100  121k  100  121k    0     0   189k      0 --:--:-- --:--:-- --:--:--  189k
Downloading complete file http://security.ubuntu.com/ubuntu/dists/utopic-security/Contents-amd64.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:-- 17 2546k   17  452k    0     0   454k      0  0:00:05 --:--:--  0:00:05 46 2546k   46 1185k    0     0   593k      0  0:00:04  0:00:01  0:00:03 75 2546k   75 1918k    0     0   640k      0  0:00:03  0:00:02  0:00:01100 2546k  100 2546k    0     0   660k      0  0:00:03  0:00:03 --:--:--  660k
Downloading Index http://security.ubuntu.com/ubuntu/dists/utopic-security/Contents-amd64.diff/Index:
No Index available.
Downloading complete file http://security.ubuntu.com/ubuntu/dists/utopic-security/Contents-amd64.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
File is up-to-date.
Ignoring source without Contents File:
  http://extras.ubuntu.com/ubuntu/dists/utopic/Contents-amd64.gz
Ignoring source without Contents File:
  http://dl.google.com/linux/chrome/deb/dists/stable/Contents-amd64.gz

इसलिए मैं देखता हूं कि यह कहता है:

apt-file is now using the user's cache directory.
If you want to switch back to the system-wide cache directory,
 run 'apt-file purge'

तो वास्तव में क्या है apt-file? और इसका क्या मतलब है कि यह अब उपयोगकर्ता की कैश निर्देशिका का उपयोग कर रहा है? क्या यह अच्छी चीज है? उपयोगकर्ता की कैश निर्देशिका और सिस्टम-वाइड कैश निर्देशिका के बीच यहां क्या अंतर है, और मुझे किसका उपयोग करना चाहिए? क्या यह किसी भी तरह से मेरे apt-getस्रोतों को प्रभावित करता है?


OS सूचना:

Description:    Ubuntu 14.10
Release:    14.10

पैकेज की जानकारी:

apt-file:
  Installed: 2.5.2.3ubuntu1
  Candidate: 2.5.2.3ubuntu1
  Version table:
 *** 2.5.2.3ubuntu1 0
        500 http://gb.archive.ubuntu.com/ubuntu/ utopic/universe amd64 Packages
        100 /var/lib/dpkg/status

जवाबों:


20
  • apt-fileका उपयोग खोज करने के लिए किया जाता है कि कौन सा पैकेज फ़ाइल प्रदान करता है। इसे http://packages.ubuntu.com के ऑफ़लाइन और कुछ सीमित संस्करण पर विचार करें ।
  • चूंकि आपने apt-file updateबिना उपयोग किया है sudo, इसलिए यह सिस्टम-वाइड डायरेक्टरी (आमतौर पर /var/cache/apt/apt-file) का उपयोग नहीं कर सकता है , और इसके बजाय आपके घर में निर्देशिका का उपयोग करता है ( ~/.cache/apt-file)।
  • अन्य उपयोगकर्ताओं द्वारा खोजें आपके उपयोगकर्ता के कैश का उपयोग नहीं कर सकती हैं।
  • यदि आप एकमात्र उपयोगकर्ता हैं, तो यह वास्तव में मायने नहीं रखता कि कौन सा कैश apt-fileउपयोग करता है, जब तक आप उपयोग करने के बारे में सुसंगत हैं sudo(या नहीं)।
  • apt-getऔर apt-fileशेयर स्रोतों, लेकिन न तो दूसरे को प्रभावित करता है।

तो क्या वास्तव में apt-fileडाउनलोड करता है ? बस मूल रूप से एक सूची? या क्या यह वास्तव में किसी भी पैकेज को डाउनलोड करता है?

1
@ParanoidPanda कैटलॉग। यह पैकेजों के बारे में जानकारी प्रदान करने के लिए मौजूद है, न कि उन्हें स्थापित करने के लिए।
— मुरु

@PranoidPanda रिपॉजिटरी में फ़ाइलों में से एक iirc उनके हेज़ के साथ पैकेज द्वारा फ़ाइलों की एक सूची है।
— मुरु

तो अगर यह सिर्फ इतना हुआ कि पैकेजों में से एक दुर्भावनापूर्ण था या परेशानी का कारण था, तो मुझे यह नहीं मिला, लेकिन सिर्फ इस पर जानकारी?

@PranoidPanda हाँ।
— मूरू
हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.