Upgrade specific software and view software version information under Ubuntu

Source: Internet
Author: User

Ubuntu Upgrade Software:

sudo apt-get update source
sudo apt-get upgrade update installed packages
sudo apt-get Dist-upgrade upgrade system

Ubuntu Upgrade specific software:

can be used sudo apt-get install pkgname

See Software Installation Location:
Dpkg-l xxxx

To see if the software is installed:
Dpkg-l | grep filename

Viewing the installation path

Dpkg-l Software Name

$ dpkg-l Gedit
/.
/usr
/usr/share
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/gedit
/usr/share/gedit/gedit-bugreport
/usr/share/applications
/usr/share/applications/gedit.desktop
/usr/share/dbus-1
/usr/share/dbus-1/services
/usr/share/dbus-1/services/org.gnome.gedit.service
/usr/share/bug
/usr/share/bug/gedit
/usr/share/bug/gedit/script
/usr/share/pyshared
/usr/share/pyshared/gi
/usr/lib/gedit/girepository-1.0
/usr/lib/gedit/girepository-1.0/gedit-3.0.typelib
/usr/lib/gedit/plugins/spell.plugin
/usr/lib/gedit/plugins/time.plugin
/usr/lib/gedit/plugins/zeitgeist.plugin
/usr/lib/gedit/plugins/snippets/substitutionparser.py
/usr/lib/gedit/plugins/snippets/windowactivatable.py
/usr/lib/libgedit-private.so.0.0.0
/usr/lib/python2.7
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/gi
/usr/lib/python2.7/dist-packages/gi/overrides
/usr/lib/libgedit-private.so.0
/usr/lib/python2.7/dist-packages/gi/overrides/gedit.py


Ubuntu View software version:


First install the software, apt-show-versions or aptitude (information more detailed, recommended)

1. Using dpkg can also

Dpkg-l Firefox
Desired status = Unknown (u)/install (i)/remove (R)/clear (p)/Hold (h)
| Status = Not installed (n)/installed (i)/existing configuration only (c)/decompression only (U)/configuration failed (F)/not fully installed (H)/Trigger Pending (W)/Trigger open (T)
|/error? = (none)/Required Reload (R) (Status, error: Uppercase = fault)
|| /Name Version Description
+++-==============-==============-============================================
II Firefox 27.0.1+build1-safe and easy Web browser from Mozilla


2. Installing sudo apt-get installapt-show-versions

Use:

$ apt-show-versions Firefox
Firefox/precise-security upgradeable from 27.0.1+build1-0ubuntu0.12.04.1 to 28.0+build2-0ubuntu0.12.04.1

3. Installing sudo apt-get install aptitude

Use: Aptitude show Firefox
Package: Firefox
Status: Installed
Automatic installation: No
Version number: 27.0.1+build1-0ubuntu0.12.04.1
Priority: Optional
Section: WEB
Maintainer: Ubuntu Mozilla Team <[email protected]>
System: I386
Uncompressed size: 64.6 M
Dependent on: Lsb-release, Libasound2 (>= 1.0.23), libatk1.0-0 (>=
1.12.4), Libc6 (>= 2.15), Libcairo2 (>= 1.2.4),
Libdbus-1-3 (>= 1.0.2), Libdbus-glib-1-2 (>=
0.78), LIBFONTCONFIG1 (>= 2.8.0), Libfreetype6 (>=
2.2.1), LIBGCC1 (>= 1:4.1.1), libgdk-pixbuf2.0-0
(>= 2.22.0), libglib2.0-0 (>= 2.31.8), libgtk2.0-0
(>= 2.24.0), libpango1.0-0 (>= 1.22.0),
Libstartup-notification0 (>= 0.8), Libstdc++6 (>=
4.6), libx11-6, Libxext6, Libxrender1, Libxt6
Recommended: Xul-ext-ubufox, LIBCANBERRA0, LIBDBUSMENU-GLIB4,
Libdbusmenu-gtk4
Recommendation: Ttf-lyx
Conflict: Gcu-plugin (<= 0.12.10-1ubuntu1)
Destruction: Abrowser (<= 4.0~b11+build3+nobinonly-0ubuntu1),
Abrowser-branding (<=
4.0~B11+BUILD3+NOBINONLY-0UBUNTU1), Adobe-flashplugin
(<= 11.1.102.63-0precise1), firefox-branding (<=
4.0~B11+BUILD3+NOBINONLY-0UBUNTU1),
Flashplugin-installer (<= 11.1.102.63ubuntu1)
Instead: Abrowser, abrowser-branding, firefox-branding,
Kubuntu-firefox-installer
Offers: Gnome-www-browser, Iceweasel, Www-browser
Description: Safe and easy Web browser from Mozilla
Firefox delivers safe, easy web browsing. A Familiar User
interface, enhanced security features including protection
From online identity theft, and integrated search
Get the most out of the web.



Appendix:

Apt-cache Search Package
Apt-cache Show package for information about packages, such as description, size, version, etc.
sudo apt-get install package
sudo apt-get Install package--Reinstall reinstall packages
sudo apt-get-f install fix "-F =--fix-missing"
sudo apt-get Remove Package
sudo apt-get Remove Package--purge delete packages, including deletion of configuration files, etc.
sudo apt-get update source
sudo apt-get upgrade update installed packages
sudo apt-get Dist-upgrade upgrade system
sudo apt-get dselect-upgrade using Dselect upgrade
Apt-cache depends package learn about using dependencies
Apt-cache Rdepends package is to see which packages are dependent on
sudo apt-get BUILD-DEP Package Installation-related compilation environment
Apt-get Source Package Downloads The source code for the bundle
sudo apt-get clean && sudo apt-get autoclean cleanup of useless packages
sudo apt-get check to see if there is a corrupted dependency

JPG change rar

Upgrade specific software and view software version information under Ubuntu

Related Article

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.