A friend bought me a copy of the Yes Minister Miscellany recently. It's largely a collection of quotations and bits and bobs, the complete scripts are out there somewhere if you want to quote every line. But those scattered bits and bobs are, I found at least, quite interesting.
Jay and Lynn state in the introduction that they based a lot of the Hacker and Sir Bernard characters on Steptoe and Son, which does in retrospect after all these years, make complete sense. And I quote:
"The minister and his Permanent Secretary had an unlikely amount in common with Steptoe & Son. The minister was Young Steptoe, the one who went out and met the public, the one with all the dreams and aspirations, and the Permanent Secretary was Old Steptoe, the one who really understood the business - sceptical, cynical and constantly deflating and frustrating Young Steptoe's plans and projects. Later, we realised that we also owed a great debt to Jeeves and Wooster and to The Admirable Crichton: like them the basic joke of Yes Minister was the master who was less able than the servant."