How do I refresh the package list?

I am downloading a java package and in order to update I need to refresh the package list. How do I do that?


Solution 1:

If you're talking about the apt package list:

sudo apt-get update