G. Farmer Hooker, 77, a retired official of the Capitol Cab Association and former employe of the old Freedmen's Hospital, died Wednesday at his home in Washington. He had cancer.

Mr. Hooker, who was born at Wilson, N.C., came to Washington in 1929 and went to work as a medical records clerk at Freedmen's, now Howard University Hospital. He joined the Capitol Cab Association during the 1930s and worked for that firm as well as for the hospital until he retired from both jobs in 1959.

During the 34 years that Mr. Hooker spent with Capitol Cab, he served as business manager and was responsible for several structural and managerial changes in the company.

Mr. Hooker was a member of the Florida Avenue Baptist Church for over 50 years and served as a trustee, chaplain and chairman of the membership relations committee.Among other things, he was a charter member of the Brotherhood Chorus and chairman of the Boy Scout committee.

Mr. Hooker also was a member of the Northwest Boundary Civic Association and the South Manor Neighborhood Association.

Survivors include his wife, Bernice W. of Washington; four daughters, Montez H. Boatman of Silver Spring, Merida H. Frost of Alexandria and Elynore H. Wilson and Clementine H. McLain, both of Washington; one sister, Inez A. Hooker of Washington; three brothers, Clarence D. of Washington and Sylvester R. and Theodore M., both of Wilson, N.C.; seven grandchildren, and one great-grandchild.