Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6813259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:32:56+00:00 2026-05-26T20:32:56+00:00

I am running the following command to list the packages installed on a server.

  • 0

I am running the following command to list the packages installed on a server.

$> dpkg -l

This is fine but when I do this

$> dpkg -l > list_of_packages_installed

I only get 106 columns of data and the rest is cut off. So all the rows are there but not all the data column-wise. There must be something simple I am missing here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:32:57+00:00Added an answer on May 26, 2026 at 8:32 pm

    The variable COLUMN is indeed responsible for this. The manpage of dpkg(8) contains under the section “ENVIRONMENT”:

       COLUMNS
             Sets  the number of columns dpkg should use when display-
             ing formatted text. Currently only used by -l.
    

    if COLUMNS is set in your environment then dpkg will use it. You can check with
    this command:

    env | grep ^COLUMNS=
    

    if that command outputs something like

    COLUMNS=80
    

    then you know that this variable is set in your environment.
    Note that this command:

    echo $COLUMNS
    

    does not tell you if it is an environment or a shell variable. COLUMNS can be set as a shell variable without being exported to the environment. With this command:

    COLUMNS=$COLUMNS dpkg -l > k
    

    you explicitely put the variable in the environment of dpkg.
    If it was not in your environment then it will be for this command only.
    Also note that the behaviour of dpkg in this respect is different between
    ubuntu and debian and also depends on the version. There have been a few
    bug reports on this topic. The dpkg in squeeze for example will set the
    column width so that all package names and version can be displayed in full
    if COLUMNS is not set in the environment and the output is not a tty.

    Regards

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im running the following command in my pre build event (get-content $(SolutionDir)woop.txt) -replace 'HELLO','GOODBYE'
after doing the command in the terminal: forever list i get the following output:
How do you return 0 instead of null when running the following command: SELECT
Running the following code, I get a StackOverflowError at the getPackage() line. How can
When running the following Java code, I get very accurate and consistent results in
When running the following locally, the fade in is very smooth, but on a
I'm creating an ignore list on a Windows machine using the following command line:
ORIGINAL MESSAGE (now outdated): After running python setup.py install I get the following: Warning:
I'm running the following command, with the intention of recreating the contents of (sync)
I have tried following how-set-up-your-own-private-git-server-linux and private-remote-git-repositories-ubuntu-linode but I am still having problems. My

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.