ubuntu software installation methods ( manual )

topic is complicated and might need refinement / edit after some time. but its good to write down my current knowledgebase for future use

OPTION1 ( RPM | Alien )

fedora has rpm installers and GUI is yum (synaptic in ubuntu). often rpm files are needed to installed in ubuntu (maya). process is simple can be done via 2 ways

  1. install alien package, it converts rpm files to debian files while checking / updating dependencies
  2. install rpm package, it lets you directly installs rpm files. only negative is it won't appear in add / remove place

installing applications
rpm -ivh --nodeps packagename
query installed apps
rpm -qa | more
removeing apps
rpm -e --nodeps packagename
>> query results x-x-x >> name-version-build>> while removing needs only name

OPTION2 ( APT | dpkg )

ubuntu has debian installers and system that works for auto updating / maintenance is APT, management of debian installers is done by dpkg from terminal and synaptic from GUI

Typing apt-get help will display:
Code:

Usage: apt-get [options] command
apt-get [options] install|remove pkg1 [pkg2 ...]
apt-get [options] source pkg1 [pkg2 ...]

Commands:
update – Retrieve new lists of packages = Reload
upgrade – Perform an upgrade = Default Upgrade
install – Install new packages (pkg is libc6 not libc6.deb)
remove – Remove packages
source – Download source archives
build-dep – Configure build-dependencies for source packages
dist-upgrade – Distribution upgrade, see apt-get(8) = Smart Upgrade
dselect-upgrade – Follow dselect selections
clean – Erase downloaded archive files
autoclean – Erase old downloaded archive files
check – Verify that there are no broken dependencies
————————————————————–
sudo apt-get install package.name
sudo apt-get update
sudo apt-get install -d package.name to just download the package.name
sudo apt-get remove package.name
sudo apt-get upgrade for non system upgrades
sudo apt-get dist-upgrade for system and normal upgrades
————————————————————–
Do not forget

apt-get -s install (to just simulate what would happen to your system)
apt-get -f install (do not specify a package. My package system is confused, Fix it.)

apt-cache search
apt-cache show

Update your local apt cache
sudo apt-get update

Install an Application
sudo apt-get install synaptic

Reinstall an application
sudo apt-get install –reinstall synaptic

Remove an application without configuration files
sudo apt-get remove synaptic

Remove an Application and all configuration files:
sudo apt-get –purge remove synaptic

To remove a installed package, for example Synaptic, and all dependencies, execute the command from konsole
sudo apt-get autoremove synaptic

To resolve all unmet dependences, execute the command from konsole
sudo apt-get -f install

Upgrade all your programs and libraries
sudo apt-get upgrade

Upgrade your distribution
sudo apt-get dist-upgrade

To clean out .deb archives from packages which are no longer installed on the system
sudo apt-get autoclean

Search for an Application
apt-cache search packagename

Show information about package
apt-cache show packagename

Show information about packages
apt-cache showpkg pkgs

No comments:

Post a Comment