Posts Tagged With: package

Building an RPM from a Spec File

Tagged with: , , , , , , ,

Use this command to build an RPM if you have a Spec File


rpmbuild -ba SPEC_FILE
No Comments »

Show all Installed Packages in Debian

Tagged with: , , , , ,

Show all deb packages installed on the system


dpkg -l
1 Comment »

Update Package List in Apt

Tagged with: , , ,

Update the package list - do this after you change the source in /etc/apt/sources.list .


apt-get update
No Comments »

Uninstall Using Yum

Tagged with: , , , ,

Use this command to remove a rpm package.


yum remove package_name
No Comments »

Install RPM Package

Tagged with: , , , , , ,

Install a rpm package


rpm -ivh package.rpm
No Comments »

Install Package Debian(DPKG)

Tagged with: , , , , ,

Install a package using dpkg in Debian linux


dpkg -i package
No Comments »

Apt using CD/DVD

Tagged with: , , , , , , ,

Install / upgrade a deb package from cdrom/dvd


apt-cdrom install package_name
No Comments »

List all Installed RPMs by Size

Tagged with: , , , , , , ,

Show space used by rpm packages installed sorted by size (fedora, redhat and like)


rpm -q -a --qf "%10{SIZE}\t%{NAME}\n" | sort -k1,1n
No Comments »

SourceForge Project Packager - from SVN source

Tagged with: , , , , , ,

This script will package your SVN code to a tar.gz file. Just give the name of the project as the first argument. Like this…

perl packager.pl jus5


#!/usr/bin/perl
#Package a Sourceforge project from its SVN source.

die("Please provide the name of the project as the argument") unless($ARGV[0]);

$project=$ARGV[0];
#$project='jus5';

`svn checkout https://$project.svn.sourceforge.net/svnroot/$project`;
`find $project/ -name .svn -exec rm -rf {} \\;`;
`tar -czf $project.tar.gz $project/`;
`rm -rf $project/`;

[tags]source,sourceforge,project,package,perl,script,svn[/tags]

No Comments »

Packaging a Subversion Project

Tagged with: , , , , ,

This is the method that I use to package a SVN Project. For CVS projects, the code is slightly different. Please note that the second line requires bash to work.

This is how I packaged nexty


svn checkout https://nexty.svn.sourceforge.net/svnroot/nexty
find nexty/ -name .svn -exec rm -rf {} \;
tar -czf nexty.tar.gz nexty/
rm -rf nexty/

[tags]svn,package,zip,compress,project,subversion[/tags]

No Comments »