Install Package List
Install a list of packages from a text file.
cat packages.txt | xargs apt-get install
Install a list of packages from a text file.
cat packages.txt | xargs apt-get install
Show rpm packages of a group software
rpm -qg "System Environment/Daemons"
Show list of files provided by a rpm package installed
rpm -ql package_name
If you want to download the deb files without installing them, use the following command. The downloaded file will be at /var/cache/apt/archives . Needless to say, this works only on Debian based distros – like Ubuntu, Kubuntu, etc
apt-get -d install PACKAGE-NAME
Show all deb packages with the name “httpd”
dpkg -l | grep httpd
Upgrade a rpm package only if it is already installed
rpm -F package.rpm
Show all rpm packages installed on the system
rpm -qa
Verify the integrity of a rpm package
rpm --checksig package.rpm
Build a rpm package from a rpm source
rpmbuild --rebuild package_name.src.rpm
Use this command to build an RPM if you have a Spec File
rpmbuild -ba SPEC_FILE