Metadata management is one of the key concepts of distributed interoperable systems. This paper compares two approaches to building a metadata repository for component-based distributed environment. We compare a hand-written repository and MOF-based one with respect to easiness of building and accessing them. The results are based on implementations of the both repositories for a real component model.