Thanks for the query.
Since the swelling is long standing for more than 6 years, less likely its malignant. It could be a long standing sebaceous cyst
which can also present like your findings.
To be on a safer side get an FNAC done for histopathology.
It its benign treatment would be surgical excision.
Hope this helps.