Also, the GPL may or may not agree with your project at hand, but at least it is an implementation to study. Example of dpkg reading the database can be seen via dpkg - l . It sounds like you just need to get that information into an elegant array or list, and I think you'll find inspiration within dpkg on just how to do that. If you end up writing your own library (or wrapper around the bits in dpkg) please put it somewhere that other people can find it. The need you have is a recurring one that many people share. Check package version using apt- get/aptitude? You can run a simulation to see what would happen if you upgrade/install a package: apt- get - s install < package>. To see all possible upgrades, run a upgrade in verbose mode and (to be safe) with simulation, press n to cancel: apt- get - V - s upgrade. The option policy can show the installed and the remote version (install candidate) of a package. If installed, shows version information about one or more packages: apt- show- versions < package>. Passing the - u switch with or without a package name will only show upgradeable packages. The console GUI of aptitude can display upgradeable packages with new versions. Open the menu 'Upgradable Packages'. Pressing v on a package will show more detailed version information. Or on the command- line: aptitude versions < package>. Passing - V will show detailed information about versions, again to be safe with the simulation switch: aptitude - V - s install < package>. Substituting install < package> with upgrade will show the versions from all upgradeable packages. Check Installed Program Debian DownloadHow to check the version before install packages using apt-get. How to see the original Debian md5sum of an installed file? In linux, how do I check if a library is installed or not? In my specific case now, I want to check whether libjpeg is installed. DESCRIPTION Verify installed Debian package files against MD5 checksum lists from. Check multiple mailboxes/maildirs for mail. Package: mailcheck (1.91.2-2 and others) Links for mailcheck. Role: role::program, scope::utility, Works with: Email. Where are the “program files” in Debian? To create a shortcut launcher for the installed application. Is it inappropriate to tell my students to check their school email? List installed packages with YUM Posted December 2nd, 2008 in Linux/Unix/BSD (Updated June 26th, 2009) This post looks at how to list the installed packages with YUM from the command line for YUM based Linux distributions. How do I list all installed programs? Debian, etc): dpkg -l; RPM-based distributions (Fedora, RHEL, etc): rpm -qa. How to find manually installed program in Linux Mint.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2016
Categories |