Page 1 of 7 123 ... LastLast
Results 1 to 10 of 63

Thread: Apt-get / dpkg tutorial

  1. #1
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Auckland, New Zealand
    Posts
    818

    Apt-get / dpkg tutorial

    I have been using debian for ages, but I still don't know all the tricks or how to use all the advanced apt / dpkg features, and I didn't need to with debian. But because knoppix has a somewhat difficult package selection, having a list of the common commands could be handy to answer questions on this forum.

    I'm talking about stuff like how to "hold back" a package, how to install one from a particular release etc.

    So here goes, help me out here.. Hope this can be come a quick reference.

    To list all the files in a package
    Code:
    dpkg -L packagename
    to install a package of a particular release ( assuming it's in your sources.list )
    Code:
    apt-get install -t unstable packagename

  2. #2

  3. #3
    Junior Member
    Join Date
    May 2003
    Location
    Aurora, Ontario, Canada
    Posts
    3

    apt and dpkg commands

    To put a package on hold
    Code:
    echo packagename hold | dpkg --set-selections
    To take a package off hold
    Code:
    echo packagename install | dpkg --set-selections
    To list the version of an installed package
    Code:
    apt-cache policy packagename | grep Installed
    To list packages containing a certain string in its package name, version or description
    Code:
    COLUMNS=120 dpkg -l | grep string
    HTH,
    orth

  4. #4
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479
    Tells the status (hold, purge etc..) of the package.
    Code:
    dpkg --get-selections <package name>
    To show anything in database with the package name.
    Code:
    dpkg -l ¦ grep <package name>
    To deinstall the package with all configuration files.
    Code:
    dpkg --purge <package name>
    To save or edit your packages status use dpkg --get-selections > current_selections.txt re-directs your packages to the file, to restore list dpkg --set-selections < current_selections.txt then apt-get update to refresh then apt-get upgrade to make the changes , also can be used to keep your current settings on any install just restore the list to the new install and apt-get update and upgrade or dist-upgrade and you will have the same software packages on the new install.

    apt-cache showpkg <package name>

    This command will display the dependencies of the package and what the package provides

    apt-cache search <package name>
    This command will search the package cache and display packages that have a relation to the package.

    Usefull apt options -s simulate the action of apt-get the --purge option will purge the configuration files when removing a package(s).

  5. #5
    Junior Member
    Join Date
    Aug 2003
    Posts
    1

    list contained files

    How to list contained files in dselect or aptitude? Or is there any other package management having that feature?

  6. #6
    Senior Member registered user
    Join Date
    May 2003
    Location
    Utrecht, The Netherlands
    Posts
    298
    synaptic (and apt-get too) only want to remove KDE 3.1.2, instead of upgrading to 3.1.3... ??? why, wazzup?

  7. #7
    Junior Member registered user
    Join Date
    Oct 2003
    Location
    somewhere
    Posts
    23
    somebody please show me how to upgrade kde once i installed knoppix in my hdd. i'd like to install it and get kopete since gaim still cannot connect to yahoo. pretty please?

  8. #8
    Senior Member registered user
    Join Date
    Nov 2002
    Posts
    1,353
    Quote Originally Posted by popuman
    somebody please show me how to upgrade kde once i installed knoppix in my hdd. i'd like to install it and get kopete since gaim still cannot connect to yahoo. pretty please?
    Do you really need to update KDE for this.

    If you're having problems getting kopete, just try this.

    apt-get update

    apt-get -t unstable kopete

    Post back if that works.

  9. #9
    Junior Member registered user
    Join Date
    Oct 2003
    Location
    somewhere
    Posts
    23
    thanks. complied with instructions. output was: E:Invalid operation kopete

    help? please?

  10. #10
    Senior Member registered user
    Join Date
    May 2003
    Location
    Utrecht, The Netherlands
    Posts
    298
    aay made small mistake: the command should be:
    Code:
    apt-get -t unstable install kopete
    (note the "install", thats the missing command apt-get complained about
    you could've found that out easy by reading the man about apt-get... THATS how you learn, not by asking us...

    how to get info about a command?
    Code:
    man (command)
    so
    Code:
    man apt-get
    gives manual of apt-get. you can use this for every command!

    good luck...

Page 1 of 7 123 ... LastLast

Similar Threads

  1. Knoppix Tutorial
    By schock in forum News
    Replies: 10
    Last Post: 11-04-2004, 09:00 AM
  2. apt-get / dpkg error: unable to access dpkg status area
    By Nitromethane1261 in forum General Support
    Replies: 2
    Last Post: 09-15-2004, 12:09 AM
  3. Tutorial
    By Firezone2k in forum General Support
    Replies: 1
    Last Post: 11-26-2003, 05:46 AM
  4. linux tutorial
    By senorian in forum The Lounge
    Replies: 0
    Last Post: 04-12-2003, 08:40 PM
  5. Tutorial Knoppix?
    By mabhatter in forum Ideas
    Replies: 1
    Last Post: 03-04-2003, 07:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


OEM Dell 65W USB-C Type C HA65NM170 Laptop Ac Power Adapter Charger XPS Latitude picture

OEM Dell 65W USB-C Type C HA65NM170 Laptop Ac Power Adapter Charger XPS Latitude

$19.59



OEM 130W Charger For Dell XPS 15 9530 9550 9560 9570 7590 06TTY6 Power Adapter picture

OEM 130W Charger For Dell XPS 15 9530 9550 9560 9570 7590 06TTY6 Power Adapter

$35.99



NEW DELL OEM WDX0R FW8KR T2JX4 Y3F7Y 42WH Battery 5567 5568 5368 7569 picture

NEW DELL OEM WDX0R FW8KR T2JX4 Y3F7Y 42WH Battery 5567 5568 5368 7569

$24.65



NEW OEM USB-C Type-C Charger For Dell XPS 15 2in1 9575 Precision 5530 130W picture

NEW OEM USB-C Type-C Charger For Dell XPS 15 2in1 9575 Precision 5530 130W

$35.99



OEM Dell 65W Type C Laptop Charger USB C Power Adapter 02YK0F Latitude XPS Venu picture

OEM Dell 65W Type C Laptop Charger USB C Power Adapter 02YK0F Latitude XPS Venu

$19.99



Genuine Dell OEM 19.5V 90W AC Power Adapter Charger Precision XPS SmallTip 4.5mm picture

Genuine Dell OEM 19.5V 90W AC Power Adapter Charger Precision XPS SmallTip 4.5mm

$11.99



New OEM DELL XPS 45W AC Adapter 0CDF57 0KXTTW 00285K 0JXC18 DA45NW140 4H6NV picture

New OEM DELL XPS 45W AC Adapter 0CDF57 0KXTTW 00285K 0JXC18 DA45NW140 4H6NV

$14.99



OEM 130W USB-C Type-C Charger for Dell XPS 15 9500 9570 9575 17 9700 DA130PM170 picture

OEM 130W USB-C Type-C Charger for Dell XPS 15 9500 9570 9575 17 9700 DA130PM170

$35.88



Genuine OEM DELLĀ  latitude 12,  I/O Module For Rugged Extreme Tablet ,7202, 7220 picture

Genuine OEM DELLĀ  latitude 12, I/O Module For Rugged Extreme Tablet ,7202, 7220

$59.00



OEM 130W Power Adapter Charger For Dell XPS 15 9530 9550 9560 9570 7590 06TTY6 picture

OEM 130W Power Adapter Charger For Dell XPS 15 9530 9550 9560 9570 7590 06TTY6

$33.33