Artifactory Old Versions -


so i'd quite mirror entire repo seems that's no easy (as evidenced how use artifactory mirror linux distributions? )

one question have, let's have remote repo setup in artifactory, , have set never expire cache. happens when package deleted source repo in artifactory's cache? can still install via apt/yum or whatever? example of ubuntu ppas, seem delete older versions when superceded, i'd use artifactory able version freeze packages.

in general, once artifact has been cached (i.e downloaded @ least once), should not concerned state of artifact in upstream repository. why artifactory excels in situations cannot depend on own in-house repository.

but full answer bit more complicated that. artifactory uses call "expirable resources". these files periodically "expire" according period defined in "metadata retrieval cache period" parameter of remote repository - see cache settings section discusses parameter among other parameters.

note setting affects particular files artifactory considers expirable. these metadata files such "packages" file or "release" file of debian repository, example. underlying assumption files change on upstream repository, , contain references newer versions of artifact in question, don't want stay stale copy forever. other (non-expirable) files stay cached in artifactory forever unless deliberately remove them, because "release" artifacts, , release artifacts immutable.

if .deb file has been removed upstream repository, metadata files reference (i.e "packages" file holds references versions of .deb file , parent "release" file) change accordingly, may mean won't able download older versions using apt client once expire , re-fetched. if want preserve remote repository in state, have 2 options:

1.setting repository "offline" (see additional basic settings) - means artifactory won't try fetch artifacts upstream repo, , serve cached ones.

2.set "metadata retrieval cache period" higher value (the default value 10 minutes).

hth,


Comments

Popular posts from this blog

serialization - Convert Any type in scala to Array[Byte] and back -

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -