Que arquivo ou diretório dose “apt-get update” afeta [duplicado]

0

Atualizei meu sistema e quero fazer alguns testes necessários para remover o cache. Eu sei que o comando baixa a lista de pacotes dos repositórios, mas onde está o banco de dados local para armazenar esta informação.

    
por Devin 29.07.2014 / 15:19

2 respostas

0

Lista completa de arquivos usados por apt-get (de man apt-get ):

FILES
       /etc/apt/sources.list
           Locations to fetch packages from. Configuration Item: Dir::Etc::SourceList.

       /etc/apt/sources.list.d/
           File fragments for locations to fetch packages from. Configuration Item: Dir::Etc::SourceParts.

       /etc/apt/apt.conf
           APT configuration file. Configuration Item: Dir::Etc::Main.

       /etc/apt/apt.conf.d/
           APT configuration file fragments. Configuration Item: Dir::Etc::Parts.

       /etc/apt/preferences
           Version preferences file. This is where you would specify "pinning", i.e. a preference to get certain packages from a
           separate source or from a different version of a distribution. Configuration Item: Dir::Etc::Preferences.

       /etc/apt/preferences.d/
           File fragments for the version preferences. Configuration Item: Dir::Etc::PreferencesParts.

       /var/cache/apt/archives/
           Storage area for retrieved package files. Configuration Item: Dir::Cache::Archives.

       /var/cache/apt/archives/partial/
           Storage area for package files in transit. Configuration Item: Dir::Cache::Archives (partial will be implicitly
           appended)

       /var/lib/apt/lists/
           Storage area for state information for each package resource specified in sources.list(5) Configuration Item:
           Dir::State::Lists.

       /var/lib/apt/lists/partial/
           Storage area for state information in transit. Configuration Item: Dir::State::Lists (partial will be implicitly
           appended)

No caso de sudo apt-get update , o seguinte pode ajudá-lo:

  • /etc/apt/sources.list
  • /etc/apt/sources.listd/
  • /var/lib/apt/lists/
  • /var/lib/apt/lists/partial/
por Pandya 29.07.2014 / 15:23
-1

De man apt-get :

% bl0ck_qu0te%

Então, para limpar o cache:

sudo apt-get clean
    
por chili555 29.07.2014 / 15:34