Do these mean the same?
Also in the presidential cabinet he had to occupy temporarily the Ministry of Interior twice over 1838 .
He also had to temporarily occupy the Ministry of the Interior in the presidential cabinet over 1838 .
yes