Author Topic: where do I find the basic commands for rpm on pclinuxos ?  (Read 1578 times)

Offline kuruka

  • Jr. Member
  • **
  • Posts: 32
    • PCLinuxOS Brazil founder
where do I find the basic commands for rpm on pclinuxos ?
« on: October 09, 2011, 10:49:48 AM »
 ???
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.

 8)
Drop in on at http://www.pclinuxosbrasil.com.br/

PCLinuxOS Brazil founder
Meet and download the portuguese version of PCLinuxOS

Offline T6

  • Super Villain
  • ******
  • Posts: 19051
  • xmas is comming!
Re: where do I find the basic commands for rpm on pclinuxos ?
« Reply #1 on: October 09, 2011, 12: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
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline DeBaas

  • Hero Member
  • *****
  • Posts: 1532
    • PCLinuxOS.nl
Re: where do I find the basic commands for rpm on pclinuxos ?
« Reply #2 on: October 09, 2011, 12: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 ~]$

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6470
  • I'm going South
Re: where do I find the basic commands for rpm on pclinuxos ?
« Reply #3 on: October 09, 2011, 01:08:37 PM »
???
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.

 8)


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....


« Last Edit: October 09, 2011, 01:23:46 PM by Bald Brick »
Feed the trolls!
They need it!

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

Offline kuruka

  • Jr. Member
  • **
  • Posts: 32
    • PCLinuxOS Brazil founder
Re: where do I find the basic commands for rpm on pclinuxos ?
« Reply #4 on: October 10, 2011, 07:52:48 AM »
 :D
Thanks, budies,
I appreciate your replies and hints. I will read carefully and follow them for sure.
cheers.
 :)
« Last Edit: October 10, 2011, 08:03:23 AM by kuruka »
Drop in on at http://www.pclinuxosbrasil.com.br/

PCLinuxOS Brazil founder
Meet and download the portuguese version of PCLinuxOS

Offline Crow

  • Hero Member
  • *****
  • Posts: 8818
  • OBJECTS IN MIRROR... ARE LOSING
Re: where do I find the basic commands for rpm on pclinuxos ?
« Reply #5 on: October 10, 2011, 07: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  :)
I shall pass this way but once;
any good therefore that I can do,
or any kindness that I can show
let me not defer nor neglect it,
for I shall not pass this way again.

Linux User #330412

Offline kuruka

  • Jr. Member
  • **
  • Posts: 32
    • PCLinuxOS Brazil founder
Re: where do I find the basic commands for rpm on pclinuxos ?
« Reply #6 on: October 10, 2011, 08: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  :)

 ???
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.
 ;D
« Last Edit: October 10, 2011, 08:08:18 AM by kuruka »
Drop in on at http://www.pclinuxosbrasil.com.br/

PCLinuxOS Brazil founder
Meet and download the portuguese version of PCLinuxOS

Offline Crow

  • Hero Member
  • *****
  • Posts: 8818
  • OBJECTS IN MIRROR... ARE LOSING
Re: where do I find the basic commands for rpm on pclinuxos ?
« Reply #7 on: October 10, 2011, 11:52:22 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  :)


 ???
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.
 ;D



I don't hang around with that select circle (nerds mainly   ;)  ) but you can find them here and here
« Last Edit: October 10, 2011, 11:56:09 AM by Crow »
I shall pass this way but once;
any good therefore that I can do,
or any kindness that I can show
let me not defer nor neglect it,
for I shall not pass this way again.

Linux User #330412

Offline Tyro65

  • Jr. Member
  • **
  • Posts: 16
Re: where do I find the basic commands for rpm on pclinuxos ?
« Reply #8 on: August 18, 2012, 09:54:05 AM »
Speaking of installing rpms, I'm trying to fix a crashing Kalarm by installing a newer version that is not yet in Synaptic.  Where do I find the correct rpm for Kalarm to install in my PCLinuxOS kde4?

Thank you.

Offline TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 740
Re: where do I find the basic commands for rpm on pclinuxos ?
« Reply #9 on: August 18, 2012, 10:24:25 AM »
You can't take an rpm from somewhere else and install it on PCLinuxOS.

Even if it does install (which it probably won't due to failed dependencies) it will almost certainly not be built against the correct version(s) of system libraries to enable it to work and it would not be accounted for in any update so would break further at some point.

As I understand it there were some KAlarm crashes which should have been fixed by latest KDE update.  

Terry.
« Last Edit: August 18, 2012, 10:44:53 AM by TerryN »
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|

Offline Tyro65

  • Jr. Member
  • **
  • Posts: 16
Re: where do I find the basic commands for rpm on pclinuxos ?
« Reply #10 on: August 18, 2012, 04:24:17 PM »
Thanks, Terry,

Excellent advice from you.  I ran into a few minor glitches but nothing that wasn't fixable.  Everything's running great again.


Stan