Johnny Cussick Moran (42) was found dead outside a property in the town's King's Road in the early hours of Sunday morning.
Twenty-eight year-old Jason Kinnaird appeared this afternoon (Tuesday) at Dunfermline Sheriff Court, charged with murder and two counts of attempting to pervert the course of justice.
He made no plea or declaration and was remanded in custody.
Leanne Bell (28) also appeared today at the court charged with attempting to pervert the course of justice in relation to the incident.
She made no plea or declaration and was released on bail.
Police sealed off part of the street after the incident as detectives carried out investigations.
The nearby Elder Lea guest house on Queensferry Road, used to house the homeless, was also cordoned off. Police have not confirmed if the victim was a resident there.
A police spokesman said, "The family of Johnny Cussick Moran are deeply saddened by the tragic death of their loved one.
"They request that they are given privacy to grieve at this very difficult time."
Police confirmed that their presence at Elder Place on the same day was due to a gas leak and unrelated to the incident.
Detective superintendent Gary McEwan said, "I would like to thank the community of Rosyth for the assistance they have provided during this enquiry.
"I am unable to provide any further information to the press at this juncture as a report has been sent to the procurator fiscal."