Well, here are some of the preparations of alkanes
From unsaturated hydrocarbons
CH2=CH2 +H2—–> CH3-CH3
This reaction happens in the presence of nickle / paladium catalyst.
From alkyl halide
2CH3Cl+2Na —> CH3-CH3 + 2NaCl
This reaction is done in the presence of dry ether.