Show links depending on page
I want some links to be shown only when not on the home page. I thought that would be achieved by the following, but it doesn't work (I obviously don't know much php). How should it be written?
<?php if (pagenow != 'home_url()') : ?>
<a href="<?php echo home_url(); ?>">Home</a>
<?php endif; ?>