On 17/05/15 00:41, Anton Aylward wrote:
On 05/16/2015 05:25 PM, buhorojo wrote:
OK. So If al locks a package. What locks a repository? It depends what you mean by "locks".
In one sense making the .repo file impermiable (aka undeletabnlle) is one kind of lock :-)
BSD has the 'no-unlink' file property and also 'immutable' as both a file and a directory setting.
As far as I know Linux only has 'immutable' for files, RTFM CHATTR <quote> A file with the 'i' attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file and no data can be written to the file </quote> which seems to roll both into the one function.
On the other hand, if by 'lock' you mean 'no furhter action, no changes resulting from this repository', once again RTFM for zypper under "Repository Management" <quote> modifyrepo (mr) <options> <alias|name|#|URI> ...
modifyrepo (mr) <options> <--all|--remote|--local|--medium-type> Modify properties of repositories specified by alias, name, number, or URI or one of the aggregate options. </quote>
That's "zypper mr ..." not "zypper -mr ..."
<quote> -d, --disable Disable the repository. </quote>
In this sense, disable means 'lock out of use'.
So, what do you mean when you speak of "lock"?
Please read the documentation. A lock on a repository prevents access to the same. Get started with: zypper --help Then read the manual: man zypper FYI, to lock a repository use the following: zypper mr Please google for the arguments or use the help files. It will be the same in 2016. HTH -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org