Ask Your Question
1

What is metadata and what is it relationship with repos ?

asked 2017-09-24 16:26:13 -0500

ahmed94 gravatar image

Hi everyone, i'm studing "yum" of redhat.

I've understand that i can save the file of downloaded packages in cache memory for some reasons. What i've not understand is the goal of using this command "yum makecache".

I've google it but i didn't understand "it says that it unables the use of metadata to enabled repos in cache memory!!!?" What is metadata and what's it relation to enabled repos ?!!

Again i've google metadata "it's a data that descripes my data" i understand it "it's like the date of creation of a file".

but what's it relation with enabled repos ?? i'm so confused please help

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-09-24 20:51:48 -0500

masteroman gravatar image

Yum repositories have meta-data associated with them, like for example mirror list from which they attempt to fetch packages.

When using yum meta-data can be flushed with:

yum clean metadata

This will achieve all cached mirrors to be flushed and meta-data will need to be regenerated on next yum update/install/search which will again fetch list of up-to-date mirrors. Thus, command:

yum makecache

Performs caching of all the meta-data for enabled repositories again and makes it available for yum.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2017-09-24 16:26:13 -0500

Seen: 45 times

Last updated: Sep 24 '17