Install or upgrade the Fedora Core 4.0 package online with apt + synaptic

Source: Internet
Author: User

 

APT is a lightweight software package management system for online installation and upgrade, and synaptic is a graphical apt software package management tool. All software packages capable of managing the Fedora Core 4.0 system and upgrading the source. It is an extremely convenient software package management tool. The best combination of the two is the best, and most suitable for cainiao who do not know anything about it; some of my colleagues may have introduced this software. I also share my experience with you. I want to write a one-step document for new students. I 'd better know nothing about Linux, it can also be OK all the way. For how to use yum for updates, see fedora/RedHat online installation and update package, yum

I,AptInstallation and simple usage;

1
,Apt;
# Rpm-IVH http://ftp.freshrpms.net/pub/fedora/linux/extras/4/i386/apt-0.5.15cnc7-6.fc4.i386.rpm
2
, ImportGPGSignature;# Rpm -- import http://svn.rpmforge.net/svn/branches/rpms/matthias/apt/RPM-GPG-KEY.freshrpms
Rpm -- import http://rpm.livna.org/RPM-LIVNA-GPG-KEY
3AddFedora Core 4.0Source;Find sources. List in the/etc/APT/directory, add the following two lines in it; RPM http://ayo.freshrpms.net fedora/Linux/4/i386 core extras updates freshrpms
Rpm http://rpm.livna.org/Fedora/4/i386 LVN
4. APTSimple Application;
1] Installation and configurationAptThe first step is to executeApt-Get updateThe purpose isAptThe list of software packages retrieved from the source.Sources. ListSource mentioned;[Root @ localhost beinan] # apt-Get update
You don't seem to have one or more of the needed GPG keys in your RPM database.
Importing them now...
Get: 1 http://ayo.freshrpms.net fedora/Linux/4/i386 release [1834b]
Fetched 1834b in 8 S (222b/s)
Get: 1 http://ayo.freshrpms.net fedora/Linux/4/i386/Core pkglist [518kb]
Get: 2 http://ayo.freshrpms.net fedora/Linux/4/i386/Core Release [151b]
Get: 3 http://ayo.freshrpms.net fedora/Linux/4/i386/extras pkglist [1262kb]
Get: 4-http://ayo.freshrpms.net fedora/Linux/4/i386/extras release [155b]
Get: 5 http://ayo.freshrpms.net fedora/Linux/4/i386/updates pkglist [1107kb]
Get: 6-http://ayo.freshrpms.net fedora/Linux/4/i386/updates release [157b]
Get: 7-http://ayo.freshrpms.net fedora/Linux/4/i386/freshrpms pkglist [65.3kb]
Get: 8 http://ayo.freshrpms.net fedora/Linux/4/i386/freshrpms release [161b]
Fetched 2952kb in 59 s (49.9kb/s)
Reading package lists... Done
Building dependency tree... Done 2] Installation, upgrade, and removal of software packages;
A) Installation of the software package; [root @ localhost beinan] # apt-Get install software package nameNote:Do not add a version number. The software name is good. For example, if you want to install or Upgrade Firefox, you can directly use apt-Get install Firefox; [root @ localhost beinan] # apt-Get install Firefox
Reading package lists... Done
Building dependency tree... Done
The following packages will be upgraded
Firefox (1.0.4-4 => 1.0.6-1.1.fc4)
1 upgraded, 0 newly installed, 0 removed, and 234 not upgraded.
Need to get 19.2 MB of archives.
After unpacking 172.16kb of additional disk space will be used.
Get: 1 http://ayo.freshrpms.net fedora/Linux/4/i386/updates Firefox. 0.6-1.1.fc4 [19.2 MB]
Fetched 19.2 MB in 6m25s (49.8kb/s)
Checking GPG signatures... ######################################## ### [100%]
Committing changes...
Preparing... ######################################## ### [100%]
1: firefox ####################################### #### [100%]
Done.

B)
Remove the software package;[Root @ localhost beinan] # apt-Get remove package name
Example:
[Root @ localhost beinan] # apt-Get remove Firefox
C)
Comprehensive system upgrade;[Root @ localhost beinan] # apt-Get upgrade
[Root @ localhost beinan] # apt-Get dist-upgrade functions are similar;

D)
Common Parameter options;

[Root @ localhost beinan] # apt-Get install-y package name for example: [root @ localhost beinan] # apt-Get install-y GaimNote:If the package is accidentally downloaded and installed, you can use the-y parameter to continue the download and installation. For example, if GAIM is downloaded to 10%, you can use the following command to download and install or upgrade the package;

[Root @ localhost beinan] # apt-Get install-D package name for example: [root @ localhost beinan] # apt-Get install-dNote:Download the software package. If you do not understand the package or install it, the directory downloaded to the local machine is/var/Cache/APT/archives.3]ClearApt-GetDownloaded package and unfinished package;[Root @ localhost beinan] # apt-Get clean
Packages downloaded through apt-Get are stored in the/var/Cache/APT/archives directory. Sometimes we interrupt some packages that are being apt-Get and such packages are not completely downloaded; we can also clean it up; we can also continue to download and install it, or we can clean it up; in this way, Apt-Get clean deletes all downloaded packages in the/var/Cache/APT/archives directory; the uncompleted packages downloaded will also be cleared. It is useful to use the/var/Cache/APT/archives/partial/function, because apt-get downloads and installation are huge and should be cleared regularly;
II,SynapticInstallation and usage;Compared with the command line operations of APT-Get, synaptic operations are extremely simple; synaptic operations are all visualized by clicking the mouse; I don't have to wait for cainiao to know what the principle is or is not working, the principle is that we will know it early, late, and late. This is a time process; but we have to install the things we want to install. Fortunately, linuxsir. org irrigation ah, haha;

1]
Installation:[Root @ localhost beinan] # apt-Get install synaptic
Reading package lists... Done
Building dependency tree... Done
The following new packages will be installed:
Synaptic (0.57.2-1. FC4)
0 upgraded, 1 newly installed, 0 removed, and 234 not upgraded.
Need to get 1682kb of archives.
After unpacking 4311kb of additional disk space will be used.
Get: 1 http://ayo.freshrpms.net fedora/Linux/4/i386/extras synaptic 0.57.2-1. FC4 [1682kb]
Fetched 1682kb in 46 s (36.2kb/s)
Checking GPG signatures... ######################################## ### [100%]
Committing changes...
Preparing... ######################################## ### [100%]
1: synaptic ####################################### #### [100%]
Done.2] Usage; easy to use;If you want to install something, install something;
Suggestion:New users do not need to upgrade the system on a large scale. First, install and upgrade a few packages you want to use, such as xmms. If you are familiar with it, we can upgrade and install the system on a large scale, but it is better not to do this. After all, graphical tools sometimes crash. Therefore, small batches are better;

 

Previous Article: fedora/RedHat online installation and update software package, yum
Next article: installing and configuring DHCP service for Linux/Unix

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.