Debian upgrade management

Source: Internet
Author: User
Debian upgrade management-Linux Release Technology-Debian information. See the following for details. The following describes how to use Debian upgrade.

First, let's talk about my Debian version. Please note that each version may be slightly different for your reference.

Command: $ cat/etc/issue
Result: Debian GNU/Linux lenny/sid \ n \ l

That is, the current version is lenny.

View the Liunx kernel version
Command: $ uname-
Result: Linux debian 2.6.24-1-686 #1 SMP Sat Apr 19 00:37:55 UTC 2008 i686 GNU/Linux

Generally, commands are used for upgrade.

Sudo apt-get update
Sudo apt-get upgrade
Sudo apt-get install package
Sudo apt-cache search package

In addition, Synaptic Package Manager is used.

You can go to system?> Administration?> Synaptic Package Manager

Is a graphical method to find, install the software package, you can also see the installed software package.

You can use system?> Administration?> Software Preferences

To set the interval between the installation source and regular upgrade.

You can use system?> Administration?> Software Updates

To manage software updates.

In fact, there is also a command aptitude in the software upgrade. I see the information on the Internet that it is a better command processing method than apt, usage

Sudo aptitude update
Sudo aptitude get package
Sudo aptitude install package
Sudo aptitude search package
Sudo aptitude remove package
Sudo aptitude purge package
Sudo aptitude download package

I still don't feel the difference. Maybe I just get used to apt, but it has a safe choice.

Use sudo aptitude safe-upgrade during upgrade

During the upgrade, you will often encounter a problem. How to choose a fast source is actually there is already a tool apt-spy to meet this requirement,

Sudo aptitude install apt-spy

Back up the original sources. list,

Sudo cp/etc/apt/sources. list "/etc/apt/sources. list. 'expr $ RANDOM % 100'. 'date-I '"

Tip: expr $ RANDOM % 10000 is an integer RANDOM number within 10000.

Date-I is the current date, in the format of year-month-day.

The effect is to add a random number and the current date behind the file name. Haha, Linux bash is not very fun, and I like the command method more and more.

Man apt-spy

Refer to the detailed usage of apt-spy. If you don't encounter any problems, go to the Forum and ask. man can actually help you.

Sudo apt-spy update

Update the image list file/var/lib/apt-spy/mirrors.txt

Sudo apt-spy-d testing-a Asia-t 5

Search for the fastest testing version of images in Asia. To speed up the detection, I set up 5 seconds to save the fastest source in/etc/apt/sources. list. d/apt-spy.list file, you can also use the-o parameter to specify the Write File

Now we can use sudo aptitude update to use the fastest detected source.

From: LaTeX Learning

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.