Yes you can install XMPP with any of of your favourite links you mentioned to understand how XMPP works A small overview is below and for more details you can see http://xmpp.org/rfcs/rfc3920.html & http://ceit.uq.edu.au/content/how-xmpp-works-step-step
XMPP is not wedded to any specific network architecture, to date it usually has been implemented via a client-server architecture wherein a client utilizing XMPP accesses a server over a [TCP] connection, and servers also communicate with each other over TCP connections.
The following diagram provides a high-level overview of this architecture (where "-" represents communications that use XMPP and "=" represents communications that use any other protocol).
C1----S1---S2---C3
|
C2----+--G1===FN1===FC1
The symbols are as follows:
C1, C2, C3 = XMPP clients
S1, S2 = XMPP servers
G1 = A gateway that translates between XMPP and the protocol(s) used on a foreign (non-XMPP) messaging network
FN1 = A foreign messaging network
FC1 = A client on a foreign messaging network
Server
A server acts as an intelligent abstraction layer for XMPP communications. Its primary responsibilities are to manage connections from or sessions for other entities, in the form of XML streams to and from authorized clients, servers, and other entities
to route appropriately-addressed XML stanzas among such entities over XML streams
Most XMPP-compliant servers also assume responsibility for the storage of data that is used by clients (e.g., contact lists for users of XMPP-based instant messaging and presence applications); in this case, the XML data is processed directly by the server itself on behalf of the client and is not routed to another entity.
Thanks & Regards,
Alok