PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 27, 2012, 06:30:40 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: where do I find the basic commands for rpm on pclinuxos ?  (Read 609 times)
kuruka
Jr. Member
**
Offline Offline

Posts: 31



WWW
« on: October 09, 2011, 11:49:48 AM »

 Huh
Dear budies,
I would like to learn rpm on pclinuxos.Because I moved to PCLinuxOS when I met the kde full monty. I am used to rpm on mandriva and mageia . I have a good knowledge about debian comands.I have read somewhere I should open a terminal bash as root and type the following for instance:

rpm -ivh packagename.rpm
or
rpm -e packagename.rpm


My question where do I find the basic commands for rpm on pclinuxos ? I know most of the users use the synaptic but I like best the terminals bash.I appreciate your hints. If you know a good pclinuxos  rpm handbook to download, It would be great.
Cheers.

 Cool
Logged

T6
Super Villain
******
Offline Offline

Posts: 17005


i can rest now :D


« Reply #1 on: October 09, 2011, 01:08:55 PM »

" I know most of the users use the synaptic but I like best the terminals bash"

synaptic will install only packages from the repos and will keep your installation, secure, stable and working the best way possible

rpm will install a rpm you downloaded by yourself and it could be a possible problem for you when talking about security and stability

the command is as simple as you wrote it there

more info about rpm

http://fedoranews.org/alex/tutorial/rpm/1.shtml

remember that when you install a package this way, synaptic will not update it and you can cause conflicts in dependencies and similar stuff, unexpected and undesired results

you have to know what you are doing and expect surprises while knowing we can't help you on the problem you are getting into because 99.9% of us only use synaptic that offers all we need

in mandriva it is useful to install some packages by hand this way because that distro is not a rolling release distro, pclinux is and that changes alot of things, basically makes rpm command nor useful
Logged

"It pays to keep an open mind, but not so open your brains fall out."

Carl Sagan
DeBaas
Hero Member
*****
Offline Offline

Posts: 1054



WWW
« Reply #2 on: October 09, 2011, 01:34:34 PM »

On the command line there is always some help, as for : rpm --help (mine is localized)

Quote
[ed@K7-2400 ~]$ rpm --help
Gebruik: rpm [OPTIE...]
  --quiet

Query/Verify package selection options:
  -a, --all                          query/verify all packages
  -f, --file                         query/verify package(s) owning file
  -g, --group                        query/verify package(s) in group
  -p, --package                      query/verify a package file
  -W, --ftswalk                      query/verify package(s) from TOP file
                                     tree walk
  --pkgid                            query/verify package(s) with package
                                     identifier
  --hdrid                            query/verify package(s) with header
                                     identifier
  --fileid                           query/verify package(s) with file
                                     identifier
  --specfile                         query a spec file
  --triggeredby                      query the package(s) triggered by the
                                     package
  --whatrequires                     query/verify the package(s) which require
                                     a dependency
  --whatprovides                     query/verify the package(s) which provide
                                     a dependency
  --nomanifest                       do not process non-package files as
                                     manifests

Query options (with -q or --query):
  -c, --configfiles                  list all configuration files
  -d, --docfiles                     list all documentation files
  --dump                             dump basic file information
  -l, --list                         list files in package
  --queryformat=QUERYFORMAT          use the following query format
  -s, --state                        display the states of the listed files

Verify options (with -V or --verify):
  --nofiledigest                     don't verify digest of files
  --nomd5                            don't verify digest of files
  --nofiles                          don't verify files in package
  --nodeps                           don't verify package dependencies
  --noscript                         don't execute verify script(s)

File tree walk options (with --ftswalk):
  --comfollow                        follow command line symlinks
  --logical                          logical walk
  --nochdir                          don't change directories
  --nostat                           don't get stat info
  --physical                         physical walk
  --seedot                           return dot and dot-dot
  --xdev                             don't cross devices
  --whiteout                         return whiteout information

Signature options:
  --addsign                          sign package(s) (identical to --resign)
  -K, --checksig                     verify package signature(s)
  --delsign                          delete package signatures
  --import                           import an armored public key
  --resign                           sign package(s) (identical to --addsign)
  --nodigest                         don't verify package digest(s)
  --nosignature                      don't verify package signature(s)

Database opties:
  --initdb                           initialize database
  --rebuilddb                        rebuild database inverted lists from
                                     installed package headers

Install/Upgrade/Erase options:
  --aid                              add suggested packages to transaction
  --allfiles                         install all files, even configurations
                                     which might otherwise be skipped
  --allmatches                       remove all packages which match <package>
                                     (normally an error is generated if
                                     <package> specified multiple packages)
  --badreloc                         relocate files in non-relocatable package
  -e, --erase=<pakket>+              erase (uninstall) package
  --excludedocs                      do not install documentation
  --excludepath=<pad>                skip files with leading component <path>
  --fileconflicts                    detect file conflicts between packages
  --force                            short hand for --replacepkgs
                                     --replacefiles
  -F, --freshen=<pakketbestand>+     upgrade package(s) if already installed
  -h, --hash                         print hash marks as package installs
                                     (good with -v)
  --ignorearch                       don't verify package architecture
  --ignoreos                         don't verify package operating system
  --ignoresize                       don't check disk space before installing
  -i, --install                      install package(s)
  --justdb                           update the database, but do not modify
                                     the filesystem
  --nodeps                           do not verify package dependencies
  --nofiledigest                     don't verify digest of files
  --nomd5                            don't verify digest of files (obsolete)
  --nocontexts                       don't install file security contexts
  --noorder                          do not reorder package installation to
                                     satisfy dependencies
  --nosuggest                        do not suggest missing dependency
                                     resolution(s)
  --noscripts                        do not execute package scriptlet(s)
  --notriggers                       do not execute any scriptlet(s) triggered
                                     by this package
  --oldpackage                       upgrade to an old version of the package
                                     (--force on upgrades does this
                                     automatically)
  --percent                          print percentages as package installs
  --prefix=<dir>                     relocate the package to <dir>, if
                                     relocatable
  --relocate=<old>=<new>             relocate files from path <old> to <new>
  --replacefiles                     ignore file conflicts between packages
  --replacepkgs                      reinstall if the package is already
                                     present
  --test                             don't install, but tell if it would work
                                     or not
  -U, --upgrade=<pakketbestand>+     upgrade package(s)

Common options for all rpm modes and executables:
  -D, --define='MACRO EXPR'          define MACRO with value EXPR
  -E, --eval='EXPR'                  print macro expansion of EXPR
  --macros=<BESTAND:...>             read <FILE:...> instead of default file(s)
  --nodigest                         don't verify package digest(s)
  --nosignature                      don't verify package signature(s)
  --rcfile=<BESTAND:...>             read <FILE:...> instead of default file(s)
  -r, --root=ROOT                    use ROOT as top level directory (default:
                                     "/")
  --querytags                        display known query tags
  --showrc                           display final rpmrc and macro
                                     configuration
  --quiet                            provide less detailed output
  -v, --verbose                      provide more detailed output
  --version                          print the version of rpm being used

Options implemented via popt alias/exec:
  --scripts                          list install/erase scriptlets from
                                     package(s)
  --setperms                         set permissions of files in a package
  --setugids                         set user/group ownership of files in a
                                     package
  --conflicts                        list capabilities this package conflicts
                                     with
  --obsoletes                        list other packages removed by installing
                                     this package
  --provides                         list capabilities that this package
                                     provides
  --requires                         list capabilities required by package(s)
  --suggests                         list capabilities this package suggests
  --recommends                       list capabilities this package recommends
  --enhances                         list capabilities this package enhances
  --supplements                      list capabilities this package supplements
  --info                             list descriptive information from
                                     package(s)
  --changelog                        list change logs for this package
  --xml                              list metadata in xml
  --triggers                         list trigger scriptlets from package(s)
  --last                             list package(s) by install time, most
                                     recent first
  --dupes                            list duplicated packages
  --filesbypkg                       list all files from each package
  --fileclass                        list file names with classes
  --filecolor                        list file names with colors
  --fscontext                        list file names with security context
                                     from file system
  --fileprovide                      list file names with provides
  --filerequire                      list file names with requires
  --filecaps                         list file names with POSIX1.e capabilities

Help options:
  -?, --help                         Show this help message
  --usage                            Display brief usage message
[ed@K7-2400 ~]$
Logged

Bald Brick
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 5150


I'm going South


« Reply #3 on: October 09, 2011, 02:08:37 PM »

Huh
Dear budies,
I would like to learn rpm on pclinuxos.Because I moved to PCLinuxOS when I met the kde full monty. I am used to rpm on mandriva and mageia . I have a good knowledge about debian comands.I have read somewhere I should open a terminal bash as root and type the following for instance:

rpm -ivh packagename.rpm
or
rpm -e packagename.rpm


My question where do I find the basic commands for rpm on pclinuxos ? I know most of the users use the synaptic but I like best the terminals bash.I appreciate your hints. If you know a good pclinuxos  rpm handbook to download, It would be great.
Cheers.

 Cool


You should never try to install a package that has not been built for and tested on PCLinuxOS -- at least not if you don't know a lot about Linux and have a testing system that you are ready to risk breaking. Consequently you won't very often need the command when you install packages.

But if you insist, start by reading this: http://pclinuxoshelp.com/index.php/Installing_Software_without_Synaptic.

On the other hand, the rpm command is useful for other things than installing packages. The man page of rpm lists all possible options, but it is not a tutorial: it can be a bit hard to decipher. To read it you simply write "man rpm" (without the quotes) in a terminal, or if you are running KDE you can write "man:rpm" in the addressbar in Konqueror or Dolphin (although I think the Dolphin addressbar must be in in edit mode for this to work).

If you don't have the man page for rpm installed you can easily find it and read it on the net. This was the first hit I got when I googled for it a minute ago: http://linux.die.net/man/8/rpm.


Edit:
Also note that Synaptic is just a shell for the "apt-get" command. So if you hate Synaptic that much (why?) and if the package you need is in the repository, you could simply use "apt-get" as root in a terminal. But then you have to look at the man page for that command....


Logged

If it ain't broke
hit harder!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D
kuruka
Jr. Member
**
Offline Offline

Posts: 31



WWW
« Reply #4 on: October 10, 2011, 08:52:48 AM »

 Cheesy
Thanks, budies,
I appreciate your replies and hints. I will read carefully and follow them for sure.
cheers.
 Smiley
Logged

Crow
Hero Member
*****
Offline Offline

Posts: 7270


OBJECTS IN MIRROR... ARE LOSING


« Reply #5 on: October 10, 2011, 08:57:01 AM »

Why don't you just join the people who package apps?  for what I've read some learned a lot by doing that and now they help the community.

Just an idea  Smiley
Logged

Linux User #330412   PCLinuxOS e17 Club Member

When life hands you lemons...  add a little salt and Tequila
kuruka
Jr. Member
**
Offline Offline

Posts: 31



WWW
« Reply #6 on: October 10, 2011, 09:05:46 AM »

Why don't you just join the people who package apps?  for what I've read some learned a lot by doing that and now they help the community.

Just an idea  Smiley

 Huh
Crow,
What does it mean?I am fresh user with PCLinuxOS.Thus, I have to learn the exact rpm commands. Could you point out the links to join it?
cheers.
 Grin
Logged

Crow
Hero Member
*****
Offline Offline

Posts: 7270


OBJECTS IN MIRROR... ARE LOSING


« Reply #7 on: October 10, 2011, 12:52:22 PM »

Why don't you just join the people who package apps?  for what I've read some learned a lot by doing that and now they help the community.

Just an idea  Smiley


 Huh
Crow,
What does it mean?I am fresh user with PCLinuxOS.Thus, I have to learn the exact rpm commands. Could you point out the links to join it?
cheers.
 Grin



I don't hang around with that select circle (nerds mainly   Wink  ) but you can find them here and here
Logged

Linux User #330412   PCLinuxOS e17 Club Member

When life hands you lemons...  add a little salt and Tequila
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM