Processes or apparatus for liquefying or solidifying gases or gaseous mixtures {characterised by the kind of cold generation within the liquefaction unit for compensating heat leaks and liquid production using an "external" refrigerant stream in a closed vapor compression cycle by expansion of a gaseous refrigerant stream with extraction of work}