Differences between revisions 7 and 8
Revision 7 as of 2007-09-09 13:44:03
Size: 3151
Editor: ?helix84
Comment:
Revision 8 as of 2007-11-11 21:45:53
Size: 1754
Comment: work in progress
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## Auto-converted by kwiki2moinmoin v2005-10-07
== Contents of a debian file ==
To get the contents of the file "abc.deb", you have to enter
{{{
dpkg-deb -c abc.deb
}}}
#language en
||||<tablestyle="width: 100%; border: 0px hidden">||<style="border: 0px hidden">||
||<style="border: 0px hidden">[:FrontPage:Front page] > Package management||<style="text-align: right; border: 0px hidden"> ||<style="text-align: right; border: 0px hidden"> (!) [:/Discussion:Discussion]||
||<style="border: 0px hidden">~-''Translation(s): [:French/PortalApt:Français]''-~||
Line 8: Line 6:
== Reconfiguring of debconf ==
To reconfigure debconf, so that it informs you of most changes of the new packages, you have to enter
{{{
 sudo dpkg-reconfigure debconf
}}}
Chose "medium" here
||<tablestyle="width: 100%; text-align: center; border: 0px hidden"> http://www.debian.org/logos/openlogo-nd-50.png http://www.debian.org/Pics/debian.png||
||<style="border: 0px hidden">~+inline:Portal/IDB/logo_portal.png Welcome on ["Debian"] package management+~||
----
inline:Portal/IDB/icone-apt-32x32.png The main goal of this portal is to learn to install and update your softwares. It explains how to manage software packages with [:Apt:apt] tools. This portal fits for beginner. So it uses a simplified informatic language. We recommand to read [:QuickInstall:installation of Debian] before to start here.
----
["Apt"] and ["dpkg"] are the heart of ["Debian"] subsystem package management. These programs help to install, remove or get your system up-to-date.
Line 15: Line 13:
== Package Management with apt-get and dpkg ==
=== Package resource list for APT ===
The file /etc/apt/sources.list is the definition file of the sources for apt. For further information about this file type
{{{
man 5 sources.list
}}}
||<tablestyle="width:100%;" style="width:32px;border-color:#ff9ec2" >inline:Portal/IDB/official-doc.png||<style="border-color:#ff9ec2;background-color:#ffe4f1" >[http://www.debian.org/doc/manuals/quick-reference/ch-package.en.html debian.org] - Official information||
Line 22: Line 15:
=== Retrieve new lists of packages: ===
To fetch the new lists of all the packages from sources.list enter as RootUser
{{{
sudo apt-get update
}}}
 * [:Synaptic:Synaptic, a graphical tool to manage your package]
 * [:Introduction to Apt and Dpkg:Introduction to Apt and Dpkg]
 * [:AptCLI:How to use Apt on the command line]
 * [:AptTools:Other tools to manage your packages]
 * DebianPackageManagement
Line 28: Line 21:
This command checks for new release-files on the given servers. Luckily the command is clever enough to check if the release-file has changed after the last update.

=== Upgrade of all the files: ===
To make an update of all the changed packages, enter the line
{{{
sudo apt-get upgrade -u
}}}

The additional flag -u shows a list of upgraded packages as well. If you want to run the update in a cron-job, you should use the flags -dy. With this flags the new packages will be downloaded but not installed. You can install them later by writing apt-get update -u.

=== Distribution Upgrade of all the files: ===
To make an upgrade of your actual distribution (e.g from potato to woody or when using unstable) replace upgrade with dist-upgrade when entering your command. So you have to type
{{{
sudo apt-get dist-upgrade -dy

sudo apt-get dist-upgrade -u
}}}
for an distribution upgrade.

=== Add a package: ===
How can you add a package to your system without the gui-programms? All you have to do is find out the name of this package and enter the command
{{{
sudo apt-get install sylpheed-claws
}}}
to add the package sylpheed-claws.

=== Remove a package: ===
To get rid of the package foo which is no longer needed, enter the command
{{{
sudo apt-get remove foo
}}}
If the package is needed by other packages you will be prompted to remove this package and all packages which depend on it.

=== Forced removing of a package: ===
While making an distribution upgrade it could happen that you have to remove a package first. But sometimes this is not possible with apt-get remove since the package has unmet dependencies or is not installed completely. You can remove the package foo by using the command
{{{
sudo dpkg --force-all --remove foo
}}}
=== Read the contents of a installed package: ===
Sometimes you want to know which files are in the package foo. To get this information enter the command
{{{
dpkg -L foo
}}}
=== Get the description of a package: ===
You don't know what the package foo is for? Just write
{{{
dpkg -p foo
}}}
=== Search the package of a file: ===
Have you ever wondered to which package belongs a given file? To get this information (e.g. for /usr/bin/apt-get), start the command
{{{
dpkg -S /usr/bin/apt-get
}}}
and it will tell you that this file is part of the package apt.
----
CategoryPortal | CategoryPackageManagement

[:FrontPage:Front page] > Package management

(!) [:/Discussion:Discussion]

Translation(s): [:French/PortalApt:Français]

http://www.debian.org/logos/openlogo-nd-50.png http://www.debian.org/Pics/debian.png

inline:Portal/IDB/logo_portal.png Welcome on ["Debian"] package management


inline:Portal/IDB/icone-apt-32x32.png The main goal of this portal is to learn to install and update your softwares. It explains how to manage software packages with [:Apt:apt] tools. This portal fits for beginner. So it uses a simplified informatic language. We recommand to read [:QuickInstall:installation of Debian] before to start here.


["Apt"] and ["dpkg"] are the heart of ["Debian"] subsystem package management. These programs help to install, remove or get your system up-to-date.

inline:Portal/IDB/official-doc.png

[http://www.debian.org/doc/manuals/quick-reference/ch-package.en.html debian.org] - Official information

  • [:Synaptic:Synaptic, a graphical tool to manage your package]

  • [:Introduction to Apt and Dpkg:Introduction to Apt and Dpkg]

  • [:AptCLI:How to use Apt on the command line]

  • [:AptTools:Other tools to manage your packages]

  • DebianPackageManagement


CategoryPortal | CategoryPackageManagement