Classic OPC was based solely on Microsoft’s DCOM for data transportation. Consequently, OPC applications typically reside on Windows. There are ports of DCOM to other operating systems (such as Linux). Consequently, OPC will work on those systems as well.
With OPC UA the OPC Foundation wrote its own services for the data transportation. The OPC Foundation is providing source code to developers who can then port the technology to any operating system.