To rename a package, select it in the Packages view, and from its context menu, select Rename.
This command updates all import statements of any affected compilation units.