Show full package name with dpkg

In a standard sized shell, the dpkg command truncates the package name. That’s not very useful if you’re trying to remove a package and need the full name. A way around this is to use the COLUMNS environment variable, for example:

COLUMNS=120 dpkg -l 'postgre*'

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s